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.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • 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.


Type: Microsoft.Xna.Framework.Vector3
A vector specifying the direction from which the light that will cast the shadow is coming.
Type: Microsoft.Xna.Framework.Plane
The plane onto which the new matrix should flatten geometry so as to cast a shadow.
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