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.001.
Number of shadow cascades. Range [1, 6]. Default 4.
Blend between uniform and logarithmic cascade splits. Range [0, 1].
Default 0.5.
Whether shadow filtering grows with caster/receiver separation.
Default false.
Debug output mode for inspecting shadow-map sampling. Default false.
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.
World-space penumbra scale used by contact-hardening shadows.
Default 0.08.
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.0035.
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.00125.
Gets the current configuration of this Shadows component.
Configures directional shadow mapping for a View.
trueor passeffects: {shadows: {enabled: true}}when creating a View.See @xeokit/sdk/viewing/viewer for usage info.