Constructor
new IESSpotLightNode( light : SpotLight )
Constructs a new IES spot light node.
| light |
The spot light source. Default is |
Properties
._iesTextureNode : TextureNode
The texture node representing the IES texture.
Default is null.
Methods
.getSpotAttenuation( builder : NodeBuilder, angleCosine : Node.<float> ) : Node.<float>
Overwrites the default implementation to compute an IES conform spot attenuation.
| builder |
The node builder. |
| angleCosine |
The angle to compute the spot attenuation for. |
- Overrides: SpotLightNode#getSpotAttenuation
- Returns: The spot attenuation.
.update( frame : NodeFrame )
Overwritten to update the IES spot light texture.
| frame |
A reference to the current node frame. |
- Overrides: SpotLightNode#update