[]
Creates a matrix that flattens geometry into a specified plane as if casting a shadow from a specified light source.
public static Matrix4x4 Shadow(Vector3 lightDirection, Vector3 normal, float d)
Type | Name | Description |
---|---|---|
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. |
Type | Description |
---|---|
Matrix4x4 | A new matrix that can be used to flatten geometry onto the specified plane from the specified direction. |