Gets whether shadows are currently applied.
This is true when View.renderMode is
in Shadows.renderModes.
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.
Gets which rendering modes in which to apply shadows.
Sets which rendering modes in which to apply shadows.
Default [RealisticRender]
— shadows fire only in the realistic preset, since they are the
most expensive lighting term and rarely wanted during navigation
or detailed inspection.
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.