Interface ScreenSpaceReflectionTaskConfig
bias?: number;
camera: Camera;
depthPyramid: DepthPyramid;
edgeFade?: number;
environment?: ScreenSpaceReflectionEnvironment | null;
environmentIntensity?: number;
environmentRotationY?: number;
maxDistance?: number;
maxRoughness?: number;
maxSteps?: number;
minReflectance?: number;
name?: string;
normalTexture: RenderTarget;
reflectivityTexture: RenderTarget;
roughnessBlur?: number;
roughnessFadeStart?: number;
sourceTexture: RenderTarget;
thickness?: number;
}
Properties
Optionalbias
Ray-origin offset along the shading normal, in view-space units. Default 0: the tracer never hits the receiver's own texel or its neighbours, and any offset moves the reflection of nearby objects by about that distance (a mirror raised by it). Raise it only where shading normals disagree with the depth buffer.
camera
depth Pyramid
Hierarchical depth of the same frame: createDepthPyramid with reduce: "nearestFarthest", built from the
single-sample reverse-Z depth (cleared to zero) of the surfaces in the inputs, before SSR each frame (e.g.
createDepthPyramidTask). Its source depth (read at full resolution) must match the other inputs' size.
Optionaledge Fade
Hit confidence fade near screen borders, in UV units. Zero disables it. Default 0.05.
Optionalenvironment
Radiance reflected where confidence is missing: misses, rays leaving the screen, and reflective surfaces that
are not traced (rougher than maxRoughness). Default none: those reflect nothing.
Optionalenvironment Intensity
Multiplier of the environment radiance. Default 1.
Optionalenvironment Rotation Y
Environment rotation around world Y in radians, like the scene's environment rotation. Default 0.
Optionalmax Distance
Optionalmax Roughness
Perceptual roughness above which surfaces are not traced (confidence 0). Default 0.6.
Optionalmax Steps
Optionalmin Reflectance
Specular reflectance (Schlick's Fresnel of the F0 at the pixel's view angle) below which pixels are not traced, like
surfaces rougher than maxRoughness; confidence fades in up to twice it. A performance setting: dielectrics
(F0 0.04) seen at moderate angles reflect too little to matter, and skipping them saves up to a third of the
tracing in PBR scenes. Default 0: every reflective pixel is traced.
Optionalname
normal Texture
Signed view-space shading normal in RGB, geometry validity in A (geometry VIEW_NORMAL output).
reflectivity Texture
Linear F0 in RGB, perceptual smoothness in A (PBR geometry REFLECTIVITY output).
Optionalroughness Blur
Scale of the GGX reflection cone that blurs rough reflections and selects the environment's LOD. 1 approximates the GGX lobe; 0 keeps mirror reflections at every roughness. Default 1.
Optionalroughness Fade Start
Perceptual roughness where confidence starts fading to 0 at maxRoughness. Default min(0.4, maxRoughness).
source Texture
Linear HDR scene radiance BEFORE image processing; an HDR target alone does not guarantee linear PBR output.
Reflections show whatever it holds. Transparent surfaces drawn into it write no depth, so they are reflected
where the ray hits the surface behind them; render them after copying it to keep them out of reflections.
When it has a mip chain (e.g. createMipMappedRenderTarget, refreshed by createGenerateMipMapsTask with
filter: tentMipmapFilter after the radiance is drawn), rough reflections read their hit radiance from the mip
matching the GGX cone; the LOD mapping assumes that filter (σ ≈ 0.62·2^lod pixels): box mips blur about 20% less
and shimmer under camera motion. Without mips the receiver filter blurs them alone.
Optionalthickness
Assumed thickness of visible surfaces: a ray passing behind one by at most this distance along the camera ray counts as a hit, in view-space units. Default 0.1.
Current-frame material inputs for the opt-in Hi-Z reflection tracer.