Capítulo 117 de 859

Chapter 117: IESSpotLightNode

Core Idea

An IES version of the default spot light node.

Key Concepts

  • _iesTextureNode : TextureNode: The texture node representing the IES texture.

Reference Tables

Constructor

Signature
new IESSpotLightNode( light : SpotLight )

Properties

PropertyDescription
._iesTextureNode : TextureNodeThe texture node representing the IES texture.

Methods

MethodDescription
.getSpotAttenuation( builder : NodeBuilder, angleCosine : Node.<float> ) : Node.<float>Overwrites the default implementation to compute an IES conform spot attenuation.
.update( frame : NodeFrame )Overwritten to update the IES spot light texture.

Key Takeaways

  1. IESSpotLightNode extends: EventDispatcher → Node → LightingNode → AnalyticLightNode → SpotLightNode
  2. Most relevant properties: _iesTextureNode.
  3. Key methods: getSpotAttenuation, update.

Connects To