public static class MrLight.Builder extends MrObject.MrObjectBuilder
mName, mShaderProgram, mTransform, mUniformKeys
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
MrLight |
createLight() |
MrLight.Builder |
setLightColor(MrVector3f lightColor) |
MrLight.Builder |
setName(java.lang.String name)
Sets the name of this object.
|
MrLight.Builder |
setShaderProgram(MrShaderProgram shaderProgram)
Sets the shader program of this object.
|
MrLight.Builder |
setTransform(MrTransform transform)
Sets the transform of this object.
|
MrLight.Builder |
setUniformKeys(java.util.Map<java.lang.String,MrUniformKey> uniformKeys)
Sets the uniformkeys of this object.
|
public MrLight.Builder setName(java.lang.String name)
MrObject.MrObjectBuilder
setName
in class MrObject.MrObjectBuilder
public MrLight.Builder setTransform(MrTransform transform)
MrObject.MrObjectBuilder
setTransform
in class MrObject.MrObjectBuilder
public MrLight.Builder setUniformKeys(java.util.Map<java.lang.String,MrUniformKey> uniformKeys)
MrObject.MrObjectBuilder
setUniformKeys
in class MrObject.MrObjectBuilder
public MrLight.Builder setShaderProgram(MrShaderProgram shaderProgram)
MrObject.MrObjectBuilder
setShaderProgram
in class MrObject.MrObjectBuilder
public MrLight.Builder setLightColor(MrVector3f lightColor)
public MrLight createLight()