Capítulo 142 de 859

Chapter 142: RectAreaLightNode

Core Idea

Module for representing rect area lights as nodes.

Key Concepts

  • halfHeight : UniformNode.<vec3>: Uniform node representing the half height of the are light.
  • halfWidth : UniformNode.<vec3>: Uniform node representing the half width of the are light.
  • updateType : string: The updateType is set to NodeUpdateType.RENDER since the light relies on viewMatrix which might vary per render call.

Reference Tables

Constructor

Signature
new RectAreaLightNode( light : RectAreaLight )

Properties

PropertyDescription
.halfHeight : UniformNode.<vec3>Uniform node representing the half height of the are light.
.halfWidth : UniformNode.<vec3>Uniform node representing the half width of the are light.
.updateType : stringThe updateType is set to NodeUpdateType.RENDER since the light relies on viewMatrix which might vary per render call.

Methods

MethodDescription
.update( frame : NodeFrame )Overwritten to updated rect area light specific uniforms.

Key Takeaways

  1. RectAreaLightNode extends: EventDispatcher → Node → LightingNode → AnalyticLightNode
  2. Most relevant properties: halfHeight, halfWidth, updateType.
  3. Key methods: update.

Connects To