[]
        
(Showing Draft Content)

C1.Util.DX.Matrix4x4.ShadowRef

ShadowRef Method

ShadowRef(out Matrix4x4, ref Vector3, ref Vector3, float)

Creates a matrix that flattens geometry into a specified plane as if casting a shadow from a specified light source.

Declaration
public static void ShadowRef(out Matrix4x4 result, ref Vector3 lightDirection, ref Vector3 normal, float d)
Parameters
Type Name Description
Matrix4x4 result

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

Vector3 lightDirection

The direction from which the light that will cast the shadow is coming.

Vector3 normal

The plane's normal vector.

float d

The plane's distance from the origin along its normal vector.