org.rajawali3d.materials / Material / enableLighting

enableLighting

open fun enableLighting(value: Boolean): Unit

Indicates whether lighting should be used or not. This must be set to true when using a DiffuseMethod or a SpecularMethod. Lights are added to a scene Scene and are automatically added to the material.

Parameters

value - Boolean:

open fun enableLighting(value: Boolean): Unit

Indicates whether lighting should be used or not. This must be set to true when using a DiffuseMethod or a SpecularMethod. Lights are added to a scene Scene and are automatically added to the material.

Parameters

value - Boolean: