ShadowCaster
type ShadowCaster = {
bias: Float;
nearDist: Float;
farDist: Float;
quality: Int32;
cascadeSplitLambda: Float;
cascadeCount: Int8;
accumulateShadowCascades: boolean;
};
Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:844
Enables a light to cast shadows.
Type declaration
Name | Type | Description |
---|---|---|
bias | Float | Bias to apply to avoid self shadowing artifacts. |
nearDist | Float | Distance to the near plane. |
farDist | Float | Distance to the far plane. |
quality | Int32 | Resolution of the shadow map. |
cascadeSplitLambda | Float | For directional lights, adjusts the distribution of cascade splits in Cascaded Shadow Mapping for directional lights. A value of 0 results in uniform (linear) splits across the view frustum, while a value of 1 skews the splits toward the camera, providing higher shadow resolution near the viewer and lower resolution in the distance. Intermediate values blend linear and logarithmic distributions for a balanced result. The value ranges from 0 to 1. |
cascadeCount | Int8 | For directional lights, number of cascades. |
accumulateShadowCascades | boolean | For directional lights, accumulate all shadow cascades. |