open fun setColor(color: Int): Unit
The material's diffuse color. This can be overwritten by Object3D#setColor(int)
. This color will be applied to the whole object. For vertex colors use Material#useVertexColors(boolean)
and Material#setVertexColors(int)
.
color
- Int: int
color The color to be used. Color.RED for instance. Or 0xffff0000.
open fun setColor(color: FloatArray!): Unit
The material's diffuse color. This can be overwritten by Object3D#setColor(int)
. This color will be applied to the whole object. For vertex colors use Material#useVertexColors(boolean)
and Material#setVertexColors(int)
.
color
- FloatArray!: A float array containing the colors to be used. These are normalized values containing values for the red, green, blue and alpha channels.
open fun setColor(color: Int): Unit
The material's diffuse color. This can be overwritten by Object3D#setColor(int)
. This color will be applied to the whole object. For vertex colors use Material#useVertexColors(boolean)
and Material#setVertexColors(int)
.
color
- Int: int
color The color to be used. Color.RED for instance. Or 0xffff0000.
open fun setColor(color: FloatArray!): Unit
The material's diffuse color. This can be overwritten by Object3D#setColor(int)
. This color will be applied to the whole object. For vertex colors use Material#useVertexColors(boolean)
and Material#setVertexColors(int)
.
color
- FloatArray!: A float array containing the colors to be used. These are normalized values containing values for the red, green, blue and alpha channels.