Document Solutions for PDF
DS.Documents.DX.Windows Assembly / GrapeCity.Documents.DX Namespace / Matrix4x4 Structure / Shadow Method
The direction from which the light that will cast the shadow is coming.
The plane's normal vector.
The plane's distance from the origin along its normal vector.

In This Topic
    Shadow Method
    In This Topic
    Creates a matrix that flattens geometry into a specified plane as if casting a shadow from a specified light source.
    Syntax
    'Declaration
     
    Public Shared Function Shadow( _
       ByVal lightDirection As Vector3, _
       ByVal normal As Vector3, _
       ByVal d As System.Single _
    ) As Matrix4x4
    public static Matrix4x4 Shadow( 
       Vector3 lightDirection,
       Vector3 normal,
       System.float d
    )

    Parameters

    lightDirection
    The direction from which the light that will cast the shadow is coming.
    normal
    The plane's normal vector.
    d
    The plane's distance from the origin along its normal vector.

    Return Value

    A new matrix that can be used to flatten geometry onto the specified plane from the specified direction.
    See Also