File: SSRPass.md | Updated: 11/15/2025
A pass for a basic SSR effect.
const ssrPass = new SSRPass( {
renderer,
scene,
camera,
width: innerWidth,
height: innerHeight
} );
composer.addPass( ssrPass );
SSRPass is an addon, and must be imported explicitly, see Installation#Addons.
import { SSRPass } from 'three/addons/postprocessing/SSRPass.js';
Constructs a new SSR pass.
options | The pass options.
---|---
Whether to blur reflections or not.
Default is true.
Whether bouncing is enabled or not.
Default is false.
The camera.
Overwritten to perform a clear operation by default.
Default is true.
Overrides: Pass#clear
Whether to use distance attenuation or not.
Default is true.
Whether to use fresnel or not.
Default is true.
The ground reflector.
Default is 0.
The height of the effect.
Default is 512.
Whether to use infinite thickness or not.
Default is false.
Controls how far a fragment can reflect.
Default is 180.
The opacity.
Default is 0.5.
The output configuration.
Default is 0.
The renderer.
The resolution scale. Valid values are in the range [0,1]. 1 means best quality but also results in more computational overhead. Setting to 0.5 means the effect is computed in half-resolution.
Default is 1.
The scene to render.
Whether the pass is selective or not.
Default is false.
Which 3D objects should be affected by SSR. If not set, the entire scene is affected.
Default is null.
Controls the cutoff between what counts as a possible reflection hit and what does not.
Default is .018.
The width of the effect.
Default is 512.
Frees the GPU-related resources allocated by this instance. Call this method whenever the pass is no longer used in your app.
Overrides: Pass#dispose
Performs the SSR pass.
renderer | The renderer.
---|---
writeBuffer | The write buffer. This buffer is intended as the rendering destination for the pass.
readBuffer | The read buffer. The pass can access the result from the previous pass from this buffer.
deltaTime | The delta time in seconds.
maskActive | Whether masking is active or not.
Overrides: Pass#render
Sets the size of the pass.
width | The width to set.
---|---
height | The height to set.
Overrides: Pass#setSize
Constructor options of SSRPass.
renderer
WebGLRenderer | The renderer.
---|---
scene
Scene | The scene to render.
camera
Camera | The camera.
width
number | The width of the effect. Default is 512.
height
number | The width of the effect. Default is 512.
selects
Array.<Object3D> | Which 3D objects should be affected by SSR. If not set, the entire scene is affected. Default is null.
bouncing
boolean | Whether bouncing is enabled or not. Default is false.
groundReflector
ReflectorForSSRPass | A ground reflector. Default is null.