Light
¶
Light node is a source of light for a 3D scene.
Light nodes contain properties that are passed as uniforms to shaders when 3D nodes are rendered. Note that lights affect only the rendering of nodes which use materials with shaders that use those lights.
Inherits properties and message types from LightMetadata.
| create() | Creates a light node |
| createDirectional() | Creates a directional light |
| createPoint() | Creates a point light |
| createSpot() | Creates a spot light |
Creates a light node.
| name | (string) | The name of the node. |
| (Light) | The created node. |
Creates a directional light.
| name | (string) | The name of the node. |
| (Light) | The created node. |
Creates a point light.
| name | (string) | The name of the node. |
| (Light) | The created node. |
Creates a spot light.
| name | (string) | The name of the node. |
| (Light) | The created node. |