Skip to main content

ShadowCaster

@3dverse/livelink v0.8.10


@3dverse/livelink / Components / ShadowCaster

Type Alias: ShadowCaster

ShadowCaster: object

Defined in: node_modules/@3dverse/livelink.core/dist/_prebuild/engine_types/components.d.ts:821

Enables a light to cast shadows.

Type declaration

bias

bias: Float

Bias to apply to avoid self shadowing artifacts.

Default Value

0.002;

nearDist

nearDist: Float

Distance to the near plane.

Default Value

0.1;

farDist

farDist: Float

Distance to the far plane.

Default Value

100;

quality

quality: Int32

Resolution of the shadow map.

Default Value

1024;

cascadeSplitLambda

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.

Default Value

0.94;

cascadeCount

cascadeCount: Int8

For directional lights, number of cascades.

Default Value

4;

accumulateShadowCascades

accumulateShadowCascades: boolean

For directional lights, accumulate all shadow cascades.

Default Value

true;