Capítulo 119 de 859

Chapter 119: LightingContextNode

Core Idea

LightingContextNode represents an extension of the ContextNode module by adding lighting specific context data. It represents the runtime context of LightsNode.

Key Concepts

  • backdropAlphaNode : Node.<float>: A backdrop alpha node.
  • backdropNode : Node.<vec3>: A backdrop node.
  • lightingModel : LightingModel: The current lighting model.
  • materialLightings : Array.<LightingNode>:

Reference Tables

Constructor

Signature
new LightingContextNode( lightsNode : LightsNode, lightingModel : LightingModel, materialLightings : Array.<LightingNode>, backdropNode : Node.<vec3>, backdropAlphaNode : Node.<float> )

Properties

PropertyDescription
.backdropAlphaNode : Node.<float>A backdrop alpha node.
.backdropNode : Node.<vec3>A backdrop node.
.lightingModel : LightingModelThe current lighting model.
.materialLightings : Array.<LightingNode>

Methods

MethodDescription
.getContext() : ObjectReturns a lighting context object.

Key Takeaways

  1. LightingContextNode extends: EventDispatcher → Node → ContextNode
  2. Most relevant properties: backdropAlphaNode, backdropNode, lightingModel, materialLightings.
  3. Key methods: getContext.

Connects To