Gets whether shadows are currently applied.
This is true when the component enabled state is
in the component enabled state.
Whether the shadow frustum is auto-fitted to the camera view each frame.
Default true.
Depth-compare bias used to avoid shadow acne. Default 0.003.
Number of shadow cascades. Range [1, 4]. Default 1.
Blend between uniform and logarithmic cascade splits. Range [0, 1].
Default 0.5.
Direction the shadow-casting light points in. Stored normalized. Default [-0.5,-1,-0.3].
How dark a fully-occluded fragment becomes. Range [0..1]. Default 0.45.
Distance from scene center at which the virtual light is placed along direction. Default 50.
When autoFit is true, the shadow far-plane distance from the camera
is clamped to this value. Default 200.
View-space normal-offset bias applied when sampling the shadow map.
Default 0.02.
Padding multiplier for the auto-fitted shadow frustum. Default 1.1.
PCF kernel size in texels (odd integer, range [1, 7]). Default 3.
Half-size (world units) of the shadow map's orthographic projection. Default 30.
Pixel resolution of the square shadow map. Default 2048.
Changing this causes the shadow-map FBO to be reallocated on the next frame.
Slope-scaled depth bias. Default 0.004.
Gets the current configuration of this Shadows component.
Configures single-cascade directional shadow mapping for a View.
See @xeokit/sdk/viewing/viewer for usage info.