class ShadowLight extends Light
Name | Type | Description | |
---|---|---|---|
viewMatrix | Matrix | ||
renderList | Array<AbstractMesh> | ||
result | Matrix |
Computes the light transformed position/direction in case the light is parented. Returns true if parented, else false.
Return the depth scale used for the shadow map.
Returns the light direction (Vector3) for any passed face index.
Name | Type | Description | |
---|---|---|---|
optional | faceIndex | number |
Returns the DirectionalLight absolute position in the World.
Sets the DirectionalLight direction toward the passed target (Vector3).
Returns the updated DirectionalLight direction (Vector3).
Name | Type | Description | |
---|---|---|---|
target | Vector3 |
Returns the light rotation (Vector3).
Boolean : false by default.
Specifies wether or not the projection matrix should be recomputed this frame.
Forces the shadow generator to recompute the projection matrix even if position and direction did not changed.
Gets the minZ used for shadow according to both the scene and the light.
Name | Type | Description | |
---|---|---|---|
activeCamera | Camera |
Gets the maxZ used for shadow according to both the scene and the light.
Name | Type | Description | |
---|---|---|---|
activeCamera | Camera |
Sets the projection matrix according to the type of light and custom projection matrix definition.
Returns the light.
Name | Type | Description | |
---|---|---|---|
matrix | Matrix | ||
viewMatrix | Matrix | ||
renderList | Array<AbstractMesh> |