 |
PlanarShadowNodeApplyPointLight Method |
ApplyPointLight method updates the matrix that is used to flatten all the models to flat shadow models.
This method need to be called when the position of the point light is changed.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic void ApplyPointLight(
Vector3 pointLightPosition,
bool updateTransformations = true
)
Parameters
- pointLightPosition Vector3
- point light's position
- updateTransformations Boolean (Optional)
- when true (by default), then the UpdateTransformations is called to update the shadow transformations
See Also