[]
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)
Public Shared Sub ShadowRef(ByRef result As Matrix4x4, ByRef lightDirection As Vector3, ByRef normal As Vector3, d As Single)
| 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. |