org.rajawali3d.materials / Material / setAmbientColor

setAmbientColor

open fun setAmbientColor(color: Int): Unit

This material's ambient color. Ambient color is the color of an object where it is in shadow.

Parameters

color - Int: The color to be used. Color.RED for instance. Or 0xffff0000.

open fun setAmbientColor(color: FloatArray!): Unit

This material's ambient color. Ambient color is the color of an object where it is in shadow.

Parameters

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 setAmbientColor(color: Int): Unit

This material's ambient color. Ambient color is the color of an object where it is in shadow.

Parameters

color - Int: The color to be used. Color.RED for instance. Or 0xffff0000.

open fun setAmbientColor(color: FloatArray!): Unit

This material's ambient color. Ambient color is the color of an object where it is in shadow.

Parameters

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.