Capítulo 264 de 859
This class represents a render pass. It takes a camera and a scene and produces a beauty pass for subsequent post processing effects.
true, only the depth can be cleared when clear is to false.const renderPass = new RenderPass( scene, camera );
composer.addPass( renderPass );
Constructor
| Signature |
|---|
| `new RenderPass( scene : Scene, camera : Camera, overrideMaterial : Material, clearColor : number |
Properties
| Property | Description |
|---|---|
.camera : Camera | The camera. |
.clear : boolean | Overwritten to perform a clear operation by default. |
.clearAlpha : number | The clear alpha of the render pass. |
| `.clearColor : number | Color |
.clearDepth : boolean | If set to true, only the depth can be cleared when clear is to false. |
.isRenderPass : boolean (readonly) | This flag indicates that this pass renders the scene itself. |
.needsSwap : boolean | Overwritten to disable the swap. |
.overrideMaterial : Material | The override material. If set, this material is used for all objects in the scene. |
.scene : Scene | The scene to render. |
Methods
| Method | Description |
|---|---|
.render( renderer : WebGLRenderer, writeBuffer : WebGLRenderTarget, readBuffer : WebGLRenderTarget, deltaTime : number, maskActive : boolean ) | Performs a beauty pass with the configured scene and camera. |