Constructor
new Light( color : number | Color | string, intensity : number ) (abstract)
Constructs a new light.
| color |
The light's color. Default is |
| intensity |
The light's strength/intensity. Default is |
Properties
.intensity : number
The light's intensity.
Default is 1.
.isLight : boolean (readonly)
This flag can be used for type testing.
Default is true.
Methods
.dispose()
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.