Inheritance: EventDispatcher → Node → LightingNode → AnalyticLightNode →
Module for representing spot lights as nodes.
Constructs a new spot light node.
light
The spot light source.
Default is null.
Uniform node representing the light color.
Overrides: AnalyticLightNode#colorNode
Uniform node representing the cone cosine.
Uniform node representing the cutoff distance.
Uniform node representing the decay exponent.
Uniform node representing the penumbra cosine.
Computes the spot attenuation for the given angle.
builder
The node builder.
angleCosine
The angle to compute the spot attenuation for.
Returns: The spot attenuation.
Overwritten to updated spot light specific uniforms.
frame
A reference to the current node frame.
Overrides: AnalyticLightNode#update