setAutoClear
const setAutoClear: {
Variable: setAutoClear
const setAutoClear: {
(autoClear): (self) => Renderer;
(self, autoClear): Renderer;
};Defined in: packages/three/src/Renderer.ts:285
Whether the renderer clears the canvas before each render.
Call Signature
(autoClear): (self) => Renderer;Parameters
| Parameter | Type |
|---|---|
autoClear | boolean |
Returns
(self) => Renderer
Call Signature
(self, autoClear): Renderer;Parameters
| Parameter | Type |
|---|---|
self | Renderer |
autoClear | boolean |
Returns
Remarks
Turning it off is how a second pass draws ON TOP of what is already there — an overlay or HUD tier. Turn it back on afterwards, or the next frame will accumulate over this one.