LightsNode

Last modified: Jun 30, 2024

This node represents the scene’s lighting and manages the lighting model’s life cycle for the current build 3D object. It is responsible for computing the total outgoing light in a given lighting context.

Constructor

new LightsNode()

Constructs a new lights node.

AccessorType

Properties

PropertyTypeDefault Value
totalDiffuseNodeany
totalSpecularNodeany
outgoingLightNodeany
_lightsArray<Light>
_lightNodesnull | Array<LightingNode>
_lightNodesHashnull | string
MethodType

Extends

Node

lights

TSL function for creating an instance of LightsNode and configuring it with the given array of lights.

ParameterTypeDefault Value
lights?Array<Light>[]

Returns

LightsNode