Windows apps
Collapse the table of content
Expand the table of content

Matrix4x4::CreateShadow Method

Creates a matrix that flattens geometry into a specified plane as if casting a shadow from a specified light source.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
static Matrix4x4 CreateShadow(
	Vector3 lightDirection, 
	Plane plane
)

Parameters

lightDirection
Type: System.Numerics::Vector3

The direction from which the light that will cast the shadow is coming.

plane
Type: System.Numerics::Plane

The plane onto which the new matrix should flatten geometry so as to cast a shadow.

Return Value

Type: System.Numerics::Matrix4x4
A new matrix that can be used to flatten geometry onto the specified plane from the specified direction.
Show:
© 2017 Microsoft