ComponentOne Bitmap for UWP
C1.UWP.DX Assembly / C1.Util.DX Namespace / Matrix4x4 Structure / ShadowRef Method
A new matrix that can be used to flatten geometry onto the specified plane from the specified direction.
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
    ShadowRef 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 Sub ShadowRef( _
       ByRef result As Matrix4x4, _
       ByRef lightDirection As Vector3, _
       ByRef normal As Vector3, _
       ByVal d As System.Single _
    ) 
    public static void ShadowRef( 
       out Matrix4x4 result,
       ref Vector3 lightDirection,
       ref Vector3 normal,
       System.float d
    )

    Parameters

    result
    A new matrix that can be used to flatten geometry onto the specified plane from the specified direction.
    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.
    See Also