![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
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.
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()
Set the current layer index.
Boolean SetLayerIndex(Integer layerIndex)
layerIndex | The current layer index to set. |
Get the current layer index.
Integer GetLayerIndex()