public class ColoredLightedMaterial extends LightedMaterial
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PER_PIXEL_PROGRAM_NAME |
static java.lang.String |
PER_VERTEX_PROGRAM_NAME |
Constructor and Description |
---|
ColoredLightedMaterial(Color[] colors,
LightingType type) |
Modifier and Type | Method and Description |
---|---|
float[] |
createVertexData(Vector3[] points,
short[] drawOrder)
Adds the colors to the vertex data.
|
Color[] |
getColors() |
void |
render(java.nio.FloatBuffer vertexBuffer,
float[] modelMatrix) |
renderLight
copy, getBoneIndexParam, getBoneParam, getBoneWeightParam, getByteStride, getMVPMatrixHandle, getPositionHandle, getPositionOffset, getProgram, setAnimated
public static final java.lang.String PER_VERTEX_PROGRAM_NAME
public static final java.lang.String PER_PIXEL_PROGRAM_NAME
public ColoredLightedMaterial(Color[] colors, LightingType type)
public void render(java.nio.FloatBuffer vertexBuffer, float[] modelMatrix)
public Color[] getColors()
public float[] createVertexData(Vector3[] points, short[] drawOrder)
createVertexData
in class Material