Skip to main content

Type Alias: ShadowProps<TextureT, SamplerT>

ShadowProps<TextureT, SamplerT> = object

Defined in: modules/lighting/shadow/shadow-types.ts:52

Fully resolved props returned by the renderer and consumed by the shadow shader module.

Type Parameters​

TextureT​

TextureT extends ShadowTexture = ShadowTexture

SamplerT​

SamplerT = unknown

Properties​

blockerSampleCount​

blockerSampleCount: number

Defined in: modules/lighting/shadow/shadow-types.ts:59


cascadeCount​

cascadeCount: number

Defined in: modules/lighting/shadow/shadow-types.ts:54


cascadeSplits​

cascadeSplits: readonly number[]

Defined in: modules/lighting/shadow/shadow-types.ts:56

Cascade split distances for the first directional light.


comparisonSampler​

comparisonSampler: SamplerT

Defined in: modules/lighting/shadow/shadow-types.ts:70


directionalCascadeSplits?​

optional directionalCascadeSplits?: readonly readonly number[][]

Defined in: modules/lighting/shadow/shadow-types.ts:58

Cascade split distances for each directional light, in input order.


directionalLights​

directionalLights: readonly DirectionalShadowLight[]

Defined in: modules/lighting/shadow/shadow-types.ts:61


directionalShadowTexture​

directionalShadowTexture: TextureT

Defined in: modules/lighting/shadow/shadow-types.ts:67


directionalViewProjectionMatrices​

directionalViewProjectionMatrices: readonly Readonly<Matrix4 | NumberArray16>[]

Defined in: modules/lighting/shadow/shadow-types.ts:64


filterSampleCount​

filterSampleCount: number

Defined in: modules/lighting/shadow/shadow-types.ts:60


nonFilteringSampler​

nonFilteringSampler: SamplerT

Defined in: modules/lighting/shadow/shadow-types.ts:71


pointLights​

pointLights: readonly PointShadowLight[]

Defined in: modules/lighting/shadow/shadow-types.ts:63


pointShadowTexture​

pointShadowTexture: TextureT

Defined in: modules/lighting/shadow/shadow-types.ts:69


pointViewProjectionMatrices​

pointViewProjectionMatrices: readonly Readonly<Matrix4 | NumberArray16>[]

Defined in: modules/lighting/shadow/shadow-types.ts:66


quality​

quality: "low" | "balanced" | "cinematic"

Defined in: modules/lighting/shadow/shadow-types.ts:53


spotLights​

spotLights: readonly SpotShadowLight[]

Defined in: modules/lighting/shadow/shadow-types.ts:62


spotShadowTexture​

spotShadowTexture: TextureT

Defined in: modules/lighting/shadow/shadow-types.ts:68


spotViewProjectionMatrices​

spotViewProjectionMatrices: readonly Readonly<Matrix4 | NumberArray16>[]

Defined in: modules/lighting/shadow/shadow-types.ts:65