Capítulo 762 de 859
This module is a helper for passes which need to render a full screen effect which is quite common in context of post processing.
The intended usage is to reuse a single quad mesh for rendering subsequent passes by just reassigning the material reference.
Note: This module can only be used with WebGPURenderer.
Constructor
| Signature |
|---|
new QuadMesh( material : Material ) |
Properties
| Property | Description |
|---|---|
.camera : OrthographicCamera (readonly) | The camera to render the quad mesh with. |
.isQuadMesh : boolean (readonly) | This flag can be used for type testing. |
Methods
| Method | Description |
|---|---|
.render( renderer : Renderer ) | Renders the quad mesh |
.renderAsync( renderer : Renderer ) : Promise (async) | Async version of render(). |