Murl Engine Lua Addon API  Version 1.0 beta
Murl.Graph.ILightState

The ILightState graph node interface.

Light state nodes are used to activate lights for rendering during scene graph traversal. As soon as a specific light is activated via a light state node, it stays active during traversal until a different light state node is encountered.

See sceneGraphStatesSlotsUnits for an overview of state handling during scene graph traversal.
See Graph::ILight for defining individual light sources and their group assignment.
See Graph::ILightTransform for setting a light's position and orientation.

Table members

Inherited


Murl.Graph.IStateUnit

Methods


GetNodeInterface()

Get the constant Graph::INode interface. This method returns a constant pointer to the node's Graph::INode interface, to be able to query common node properties such as active state, visibility or ID.

Murl.Graph.INode GetNodeInterface()

Returns
Murl.Graph.INode The constant Graph::INode interface, or null if not available

GetLightNodeTarget()

Get the constant Graph::ILightNodeTarget container. This method returns a constant pointer to the node's Graph::ILightNodeTarget container, which allows to query the light this state refers to.

Murl.Graph.IGenericNodeTarget.GraphILight GetLightNodeTarget()

Returns
Murl.Graph.IGenericNodeTarget.GraphILight The mutable Graph::ILightNodeTarget container, or null if not available.