Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/renderers/WebGLRenderer.js>WebGLRenderer#setRenderTarget

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method WebGLRenderer.prototype.setRenderTarget
import { WebGLRenderer } from "https://deno.land/x/threejs_4_deno@v121/src/renderers/WebGLRenderer.js";

Sets the active render target.

Parameters

renderTarget: RenderTarget | null

The renderTarget that needs to be activated. When null is given, the canvas is set as the active render target instead.

optional
activeCubeFace: number

Specifies the active cube side (PX 0, NX 1, PY 2, NY 3, PZ 4, NZ 5) of WebGLCubeRenderTarget.

optional
activeMipmapLevel: number

Specifies the active mipmap level.