Module for representing spot lights as nodes.
Constructor
new SpotLightNode(light?)| Parameter | Type | Default Value |
|---|---|---|
| light? | any | null |
Constructs a new spot light node.
| Accessor | Type | |
|---|---|---|
| get type | string | |
Properties
| Property | Type | Default Value | |
|---|---|---|---|
| coneCosNode | UniformNode<float> | — | |
| penumbraCosNode | UniformNode<float> | — | |
| cutoffDistanceNode | UniformNode<float> | — | |
| decayExponentNode | UniformNode<float> | — | |
| Method | Type | |
|---|---|---|
| update | (frame: NodeFrame) => void | |
| getSpotAttenuation | (builder: NodeBuilder, angleCosine: Node<…>) => any | |
| getLightCoord | (builder: any) => any | |
| setupDirect | (builder: any) => { lightColor: any; lightDirection: any; } | |
Extends
AnalyticLightNode