[]
Creates a matrix that flattens geometry into a specified plane as if casting a shadow from a specified light source.
public static void ShadowRef(out Matrix4x4 result, ref Vector3 lightDirection, ref Vector3 normal, float d)
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. |