Click or drag to resize
Ab4d.SharpEngine logo

PlanarShadowNodeApplyDirectionalLight Method

ApplyDirectionalLight method updates the matrix that is used to flatten all the models to flat shadow models. This method need to be called when the direction of the directional light is changed.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public void ApplyDirectionalLight(
	Vector3 directionalLightDirection,
	bool updateTransformations = true
)

Parameters

directionalLightDirection  Vector3
directional light's direction Vector3
updateTransformations  Boolean  (Optional)
when true (by default), then the UpdateTransformations is called to update the shadow transformations
See Also