![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IResourceShadowGeometry graph node interface.
This interface represents a renderable shadow volume geometry that is dynamically generated from the geometry information stored in a given read-only Resource::IMesh object, together with (an) active light source(s) at a given unit.
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()
Get the constant Graph::ITransform interface. This method returns a constant pointer to the node's Graph::ITransform interface, to be able to query the node's transformation matrix and depth order.
Murl.Graph.ITransform GetTransformInterface()
Get the constant Graph::IResourceMeshGeometry interface. This method returns a constant pointer to the node's Graph::IResourceMeshGeometry interface, to be able to query base properties of the shadow geometry.
Murl.Graph.IResourceMeshGeometry GetResourceMeshGeometryInterface()
Set the light unit used for shadow volume creation.
Boolean SetLightUnit(Integer unit)
unit | The light unit in the range from 0 to IEnums::NUM_LIGHT_UNITS-1. |
Get the light unit used for shadow volume creation.
Integer GetLightUnit()
Set which faces are used to extrude the shadow volumes.
Boolean SetFacesToExtrude(Murl.IEnums.PolygonFaces faces)
faces | The used faces, either IEnums::POLYGON_FACES_FRONT_ONLY or IEnums::POLYGON_FACES_BACK_ONLY. |
Query which faces are used to extrude the shadow volumes.
Murl.IEnums.PolygonFaces GetFacesToExtrude()
Set the shadow volume generation mode. If set to IEnums::SHADOW_VOLUME_GENERATION_MODE_DEFAULT, the preferred way is to use geometry adjacency information, if present. Otherwise, bounding data is used.
Boolean SetShadowVolumeGenerationMode(Murl.IEnums.ShadowVolumeGenerationMode mode)
mode | The generation mode. |
Query the shadow volume generation mode.
Murl.IEnums.ShadowVolumeGenerationMode GetShadowVolumeGenerationMode()