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

The ILayerState graph node interface.

To allow finer control over the order in which geometry is rendered within an active Graph::ICamera, it is possible to select an individual render layer by using a Graph::ILayerState node with a given index. Layers with lower indices (default 0) are rendered first, i.e. their objects will be overdrawn by objects contained in layers with higher indices.

In any case, if one layer contains both solid and (semi-)transparent objects, the solid ones are always rendered before the transparent ones. If this order is to be reversed, all solid objects must be put to a layer with an index higher than the current one.


Table members

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

SetLayerIndex(layerIndex)

Set the current layer index.

Boolean SetLayerIndex(Integer layerIndex)

Parameters
layerIndexThe current layer index to set.
Returns
Boolean true if successful.

GetLayerIndex()

Get the current layer index.

Integer GetLayerIndex()

Returns
Integer The current layer index.