public class MrLightData extends MrObjectData
mName, mSceneObjType, mShaderProgram, mTransform, mUniformGenerators, mUniformKeys
Constructor and Description |
---|
MrLightData(java.lang.String name,
MrTransform transform,
MrShaderProgram program,
java.util.Map<java.lang.String,MrUniformKey> uniformKeys,
MrVector3f lightColor) |
Modifier and Type | Method and Description |
---|---|
MrVector3f |
getColor() |
void |
initializeUniforms() |
void |
setColor(float r,
float g,
float b) |
void |
setColor(MrVector3f color) |
getName, getSceneObjectType, getShaderProgram, getTransform, getUniformGenerators, getUniformKeys, setTransform, setUniformGenerators, setUniformKeys
public MrLightData(java.lang.String name, MrTransform transform, MrShaderProgram program, java.util.Map<java.lang.String,MrUniformKey> uniformKeys, MrVector3f lightColor)
public void initializeUniforms()
initializeUniforms
in class MrObjectData
public MrVector3f getColor()
public void setColor(MrVector3f color)
public void setColor(float r, float g, float b)