Light
Represents a light source in the scene.
| Type | Name | Interface Description |
|---|---|---|
| Variables | color: Color | • Function: Gets the color of the light. |
| Variables | intensity: number | • Function: Gets the intensity of the light. |
| Variables | renderLayer: LayerSet | • Function: Gets the layers that are affected by this light. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.Light();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use Light here
}
onUpdate(deltaTime: number) {
}
}