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 3.8.0.398)
  • C#
  • VB
  • F#
public static Matrix CreateShadow(
	Vector3 lightDirection, 
	Plane plane
)

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.

Return Value

Type: Microsoft.Xna.Framework.Matrix
A Matrix that can be used to flatten geometry onto the specified plane from the specified direction.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web