Represents the shadow configuration of directional lights.
Attributes
- Companion
- object
- Graph
-
- Supertypes
Members list
Value members
Inherited methods
Returns a new light shadow instance with copied values from this instance.
Returns a new light shadow instance with copied values from this instance.
Attributes
- Definition Classes
-
LightShadow -> Object
- Inherited from:
- LightShadow
Copies the values of the given light shadow instance to this instance.
Copies the values of the given light shadow instance to this instance.
Attributes
- Inherited from:
- LightShadow
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer used in your app.
Attributes
- Inherited from:
- LightShadow
Returns the frame extends.
Gets the shadow cameras frustum. Used internally by the renderer to cull objects.
Gets the shadow cameras frustum. Used internally by the renderer to cull objects.
Attributes
- Inherited from:
- LightShadow
Returns a viewport definition for the given viewport index.
Used internally by the renderer to get the number of viewports that need to be rendered for this shadow.
Used internally by the renderer to get the number of viewports that need to be rendered for this shadow.
Attributes
- Inherited from:
- LightShadow
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Attributes
- Inherited from:
- Object
Serializes the light shadow into JSON.
Attributes
- Inherited from:
- Object
Update the matrices for the camera and shadow, used internally by the renderer.
Update the matrices for the camera and shadow, used internally by the renderer.
Attributes
- Inherited from:
- LightShadow
Attributes
- Inherited from:
- Object
Concrete fields
This flag can be used for type testing.
This flag can be used for type testing.
Attributes
Inherited fields
Enables automatic updates of the light's shadow. If you do not require dynamic lighting / shadows, you may set this to false.
Enables automatic updates of the light's shadow. If you do not require dynamic lighting / shadows, you may set this to false.
Attributes
- Inherited from:
- LightShadow
Shadow map bias, how much to add or subtract from the normalized depth when deciding whether a surface is in shadow.
Shadow map bias, how much to add or subtract from the normalized depth when deciding whether a surface is in shadow.
The default is 0. Very tiny adjustments here (in the order of 0.0001) may help reduce artifacts in shadows.
Attributes
- Inherited from:
- LightShadow
The amount of samples to use when blurring a VSM shadow map.
Attributes
- Inherited from:
- LightShadow
The intensity of the shadow. The default is 1. Valid values are in the range [0, 1].
The intensity of the shadow. The default is 1. Valid values are in the range [0, 1].
Attributes
- Inherited from:
- LightShadow
The depth map generated using the internal camera; a location beyond a pixel's depth is in shadow. Computed internally during rendering.
The depth map generated using the internal camera; a location beyond a pixel's depth is in shadow. Computed internally during rendering.
Attributes
- Inherited from:
- LightShadow
The distribution map generated using the internal camera; an occlusion is calculated based on the distribution of depths. Computed internally during rendering.
The distribution map generated using the internal camera; an occlusion is calculated based on the distribution of depths. Computed internally during rendering.
Attributes
- Inherited from:
- LightShadow
Defines the width and height of the shadow map. Higher values give better quality shadows at the cost of computation time. Values must be powers of two.
Defines the width and height of the shadow map. Higher values give better quality shadows at the cost of computation time. Values must be powers of two.
Attributes
- Inherited from:
- LightShadow
The type of shadow texture. The default is UnsignedByteType.
Model to shadow camera space, to compute location and depth in shadow map. This is computed internally during rendering.
Model to shadow camera space, to compute location and depth in shadow map. This is computed internally during rendering.
Attributes
- Inherited from:
- LightShadow
When set to true, shadow maps will be updated in the next render call. If you have set [[LightShadow#autoUpdate]] to false, you will need to set this property to true and then make a render call to update the light's shadow.
When set to true, shadow maps will be updated in the next render call. If you have set [[LightShadow#autoUpdate]] to false, you will need to set this property to true and then make a render call to update the light's shadow.
Attributes
- Inherited from:
- LightShadow
Defines how much the position used to query the shadow map is offset along the object normal. The default is 0. Increasing this value can be used to reduce shadow acne especially in large scenes where light shines onto geometry at a shallow angle. The cost is that shadows may appear distorted.
Defines how much the position used to query the shadow map is offset along the object normal. The default is 0. Increasing this value can be used to reduce shadow acne especially in large scenes where light shines onto geometry at a shallow angle. The cost is that shadows may appear distorted.
Attributes
- Inherited from:
- LightShadow
Setting this to values greater than 1 will blur the edges of the shadow. High values will cause unwanted banding effects in the shadows - a greater map size will allow for a higher value to be used here before these effects become visible.
Setting this to values greater than 1 will blur the edges of the shadow. High values will cause unwanted banding effects in the shadows - a greater map size will allow for a higher value to be used here before these effects become visible.
The property has no effect when the shadow map type is PCFSoftShadowMap and and it is recommended to increase softness by decreasing the shadow map size instead.
The property has no effect when the shadow map type is BasicShadowMap.
Attributes
- Inherited from:
- LightShadow