Interface ScreenSpaceContactShadowsPostProcessTaskConfig
interface ScreenSpaceContactShadowsPostProcessTaskConfig {
bias?: number;
camera: Camera;
composition?: "none" | "multiply";
depthTexture?: RenderTarget;
intensity?: number;
lightDirection: { x: number; y: number; z: number };
maxDistance?: number;
name?: string;
normalBias?: number;
resetVersion?: number;
resolutionScale?: number;
sourceTexture: RenderTarget;
spatialRadius?: number;
stepCount?: number;
targetTexture?: RenderTarget | null;
temporalSamples?: number;
temporalWeight?: number;
thickness?: number;
tint?: readonly [number, number, number];
}
bias?: number;
camera: Camera;
composition?: "none" | "multiply";
depthTexture?: RenderTarget;
intensity?: number;
lightDirection: { x: number; y: number; z: number };
maxDistance?: number;
name?: string;
normalBias?: number;
resetVersion?: number;
resolutionScale?: number;
sourceTexture: RenderTarget;
spatialRadius?: number;
stepCount?: number;
targetTexture?: RenderTarget | null;
temporalSamples?: number;
temporalWeight?: number;
thickness?: number;
tint?: readonly [number, number, number];
}
Properties
Optionalbias
bias?: number
camera
Optionalcomposition
composition?: "none" | "multiply"
Optionaldepth Texture
Depth attachment source, when different from sourceTexture (must be single-sample).
Optionalintensity
intensity?: number
light Direction
lightDirection: { x: number; y: number; z: number }
Optionalmax Distance
maxDistance?: number
Optionalname
name?: string
Optionalnormal Bias
normalBias?: number
Optionalreset Version
resetVersion?: number
Optionalresolution Scale
resolutionScale?: number
source Texture
Scene color + depth target already rendered this frame (single-sample).
Optionalspatial Radius
spatialRadius?: number
Same-surface temporal supersampling radius in effect pixels.
Optionalstep Count
stepCount?: number
Optionaltarget Texture
Composite destination. null/omitted composites over sourceTexture's own target size. Must differ from sourceTexture.
Optionaltemporal Samples
temporalSamples?: number
Optionaltemporal Weight
temporalWeight?: number
Optionalthickness
thickness?: number
Optionaltint
tint?: readonly [number, number, number]
Configuration for
createScreenSpaceContactShadowsPostProcessTask.