Matrix.CreateShadow Method (Microsoft.Xna.Framework)
Creates a new Matrix that flattens geometry into a specified Plane as if casting a shadow from a specified light source.
- C#
- VB
- F#
public static void CreateShadow( Vector3 lightDirection, Plane plane, out Matrix result )
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
Parameters
- lightDirection
-
Type: Microsoft.Xna.Framework.Vector3
A vector specifying the direction from which the light that will cast the shadow is coming.
- plane
-
Type: Microsoft.Xna.Framework.Plane
The plane onto which the new matrix should flatten geometry so as to cast a shadow.
- result
-
Type: out Microsoft.Xna.Framework.Matrix
A Matrix that can be used to flatten geometry onto the specified plane from the specified direction as an output parameter.
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web