setRenderTarget
const setRenderTarget: {
Variable: setRenderTarget
const setRenderTarget: {
(target): (self) => Renderer;
(self, target): Renderer;
};Defined in: packages/three/src/Renderer.ts:251
Point the renderer's output at an offscreen target, or null to draw to
the canvas.
Call Signature
(target): (self) => Renderer;Parameters
| Parameter | Type |
|---|---|
target | RenderTarget | null |
Returns
(self) => Renderer
Call Signature
(self, target): Renderer;Parameters
| Parameter | Type |
|---|---|
self | Renderer |
target | RenderTarget | null |
Returns
Remarks
Rendering to a target is how a result becomes something to sample — reading pixels back, or feeding a texture into another pass. Save and restore the previous target around nested renders; getRenderTarget is there for exactly that.