![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IShadowCamera graph node interface.
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 ISubject interface. This method returns a constant pointer to the node's ISubject interface, to be able to query subject properties such as world transform, viewing matrix, projection matrix etc.
Murl.Graph.ISubject GetSubjectInterface()
Get the constant ICamera interface. This method returns a constant pointer to the node's ICamera interface, to be able to query common camera parameters.
Murl.Graph.ICamera GetCameraInterface()
Get the constant container holding the light node casting the shadow. This method returns a constant pointer to the node's Graph::ILightNodeTarget container, which is used to store the light node.
Murl.Graph.IGenericNodeTarget.GraphILight GetLightNodeTarget()
Get the constant container holding the camera node rendering the shadowed scene. This method returns a constant pointer to the node's Graph::ILightNodeTarget container, which is used to store the scene camera node.
Murl.Graph.IGenericNodeTarget.GraphICamera GetCameraNodeTarget()
Set the shadow map placement mode. This method sets the placement mode for the shadow map, either at the view volume's actual center, or at the center of the bounding sphere surrounding the view volume.
Boolean SetPlacementMode(Murl.IEnums.ShadowMapPlacementMode mode)
mode | The placement mode. |
Get the shadow map placement mode.
Murl.IEnums.ShadowMapPlacementMode GetPlacementMode()
Set the shadow map alignment mode. This method sets the alignment mode for the shadow map, either perpendicular to the view vector (i.e. the light's main direction), or perpendicular to a given up vector defining a custom plane. See SetUpVector().
Boolean SetAlignmentMode(Murl.IEnums.ShadowMapAlignmentMode mode)
mode | The alignment mode. |
Get the shadow map alignment mode.
Murl.IEnums.ShadowMapAlignmentMode GetAlignmentMode()
Set the alignment plane's up vector. The alignment plane's up vector is only used when the actual alignment mode is set to IEnums::SHADOW_MAP_ALIGNMENT_MODE_FIXED_PLANE. See SetAlignmentMode();
Boolean SetUpVector(Murl.Math.Vector upVector)
upVector | The up vector. |
Get the alignment plane's up vector.
Murl.Math.Vector GetUpVector()
Enable/disable shadow map stabilization.
Boolean SetStabilizationEnabled(Boolean enabled)
enabled | If true, stabilization is enabled. |
Check if shadow map stabilization is enabled.
Boolean IsStabilizationEnabled()
Set the bounding volume's additonal scale factor. By default, the scale factor is set to 1.
Boolean SetSphereScaleFactor(Number scaleFactor)
scaleFactor | The scale factor. |
Get the bounding volume's additonal scale factor.
Number GetSphereScaleFactor()