Capítulo 148 de 859
Module for representing spot lights as nodes.
Constructor
| Signature |
|---|
new SpotLightNode( light : SpotLight ) |
Properties
| Property | Description |
|---|---|
.colorNode : UniformNode.<Color> | Uniform node representing the light color. |
.coneCosNode : UniformNode.<float> | Uniform node representing the cone cosine. |
.cutoffDistanceNode : UniformNode.<float> | Uniform node representing the cutoff distance. |
.decayExponentNode : UniformNode.<float> | Uniform node representing the decay exponent. |
.penumbraCosNode : UniformNode.<float> | Uniform node representing the penumbra cosine. |
Methods
| Method | Description |
|---|---|
.getSpotAttenuation( builder : NodeBuilder, angleCosine : Node.<float> ) : Node.<float> | Computes the spot attenuation for the given angle. |
.update( frame : NodeFrame ) | Overwritten to updated spot light specific uniforms. |