EnvironmentLight
Represents an environment light component.
| Type | Name | Interface Description |
|---|---|---|
| Variables | color: Color | • Function: The tint color of the environment light. |
| Variables | environmentMap: Texture | • Function: Gets the environment map used for specular reflections. The returned texture is expected to be a cubemap texture. |
| Variables | intensity: number | • Function: Gets the intensity of the environment light. |
| Variables | renderLayer: LayerSet | • Function: Gets the render layer of the environment light. |
| Variables | rotation: number | • Function: Gets the rotation of the environment light in degrees. |
| Functions | constructor() |
Examples
constructor()
let obj = new APJS.EnvironmentLight();
Use Case
@component()
export class NewBehaviourScript extends APJS.BasicScriptComponent {
onStart() {
// TODO: instantiate / use EnvironmentLight here
}
onUpdate(deltaTime: number) {
}
}