Capítulo 118 de 859
Abstract base class for lights - all other light types inherit the properties and methods described here.
Constructor
| Signature |
|---|
| `new Light( color : number |
Properties
| Property | Description |
|---|---|
.color : Color | The light's color. |
.intensity : number | The light's intensity. |
.isLight : boolean (readonly) | This flag can be used for type testing. |
Methods
| Method | Description |
|---|---|
.dispose() | Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app. |