Click or drag to resize
Ab4d.SharpEngine logo

MathUtilsGetDirectionalLightShadowMatrix Method

Creates a matrix that flattens a 3D mesh into a shadow mesh that lies on this plane and has zero height.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public static Matrix4x4 GetDirectionalLightShadowMatrix(
	 in Vector3 lightDirection,
	 in Plane plane
)

Parameters

lightDirection  Vector3
The light direction (should be normalized)
plane  Plane
Plane

Return Value

Matrix4x4
shadow Matrix3D
See Also