Capítulo 135 de 859

Chapter 135: PointLightNode

Core Idea

Module for representing point lights as nodes.

Key Concepts

  • cutoffDistanceNode : UniformNode.<float>: Uniform node representing the cutoff distance.
  • decayExponentNode : UniformNode.<float>: Uniform node representing the decay exponent.

Reference Tables

Constructor

Signature
new PointLightNode( light : PointLight )

Properties

PropertyDescription
.cutoffDistanceNode : UniformNode.<float>Uniform node representing the cutoff distance.
.decayExponentNode : UniformNode.<float>Uniform node representing the decay exponent.

Methods

MethodDescription
.setupShadowNode() : PointShadowNodeOverwritten to setup point light specific shadow.
.update( frame : NodeFrame )Overwritten to updated point light specific uniforms.

Key Takeaways

  1. PointLightNode extends: EventDispatcher → Node → LightingNode → AnalyticLightNode
  2. Most relevant properties: cutoffDistanceNode, decayExponentNode.
  3. Key methods: setupShadowNode, update.

Connects To