Click or drag to resize
Ab4d.SharpEngine logo

PlanarShadowMeshCreator Class

PlanarShadowMeshCreator is a class that can be used to create a a planar shadow mesh.
Inheritance Hierarchy
SystemObject
  Ab4d.SharpEngine.UtilitiesPlanarShadowMeshCreator

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 1.0.8740+deb2991acfe86a95cca780cd4f82bcae2805c1a5
Syntax
C#
public class PlanarShadowMeshCreator

The PlanarShadowMeshCreator type exposes the following members.

Constructors
Properties
 NameDescription
Public propertyClipToPlane Gets or sets a boolean that specifies if the shadow mesh is clipped to the plane's edge. Default value is true.
Public propertyOriginalGroupNode Gets the GroupNode that was used to create the planar shadow mesh (set when PlanarShadowMeshCreator is created from a GroupNode).
Public propertyOriginalMesh Gets the StandardMesh that was used to create the planar shadow mesh (set when PlanarShadowMeshCreator is created from a StandardMesh).
Public propertyShadowMesh ShadowMesh gets the StandardMesh that represents a show geometry that was generated after calling ApplyDirectionalLight(Vector3), ApplyPointLight(Vector3) or ApplyShadowMatrix(Matrix4x4).
Top
Methods
 NameDescription
Public methodApplyDirectionalLight ApplyShadowMatrix method updates the ShadowMesh with the specified directional light's direction Vector3. The created shadow mesh can be read from ShadowMesh.
Public methodApplyPointLight ApplyShadowMatrix method updates the ShadowMesh with the specified point light's position. The created shadow mesh can be read from ShadowMesh.
Public methodApplyShadowMatrix ApplyShadowMatrix method updates the shadow mesh with the specified shadow matrix. The created shadow mesh can be read from ShadowMesh.
Public methodSetPlane(PlaneModelNode) SetPlane method sets the plane for the shadow mesh from the specified PlaneModelNode.
Public methodSetPlane(Vector3, Vector3, Vector3, Vector2) SetPlane method sets the plane for the shadow mesh from the specified plane information.
Public methodUpdateGroupNode UpdateGroupNode must be called when the GroupNode that was used to create this PlanarShadowMeshCreator was changed.
Public methodUpdateMesh UpdateMesh must be called when the StandardMesh that was used to create this PlanarShadowMeshCreator was changed.
Top
See Also