Inheritance: Pass →
This class represents a render pass. It takes a camera and a scene and produces a beauty pass for subsequent post processing effects.
const renderPass = new RenderPass( scene, camera );
composer.addPass( renderPass );
RenderPass is an addon, and must be imported explicitly, see Installation#Addons.
import { RenderPass } from 'three/addons/postprocessing/RenderPass.js';
Constructs a new render pass.
scene
The scene to render.
camera
The camera.
overrideMaterial
The override material. If set, this material is used for all objects in the scene.
Default is null.
clearColor
The clear color of the render pass.
Default is null.
clearAlpha
The clear alpha of the render pass.
Default is null.
The camera.
Overwritten to perform a clear operation by default.
Default is true.
Overrides: Pass#clear
The clear alpha of the render pass.
Default is null.
The clear color of the render pass.
Default is null.
If set to true, only the depth can be cleared when clear is to false.
Default is false.
This flag indicates that this pass renders the scene itself.
Default is true.
Overwritten to disable the swap.
Default is false.
Overrides: Pass#needsSwap
The override material. If set, this material is used for all objects in the scene.
Default is null.
The scene to render.
Performs a beauty pass with the configured scene and camera.
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