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.d.ts>WebGLRenderer#copyFramebufferToTexture

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

Copies a region of the currently bound framebuffer into the selected mipmap level of the selected texture. This region is defined by the size of the destination texture's mip level, offset by the input position.

Parameters

position: Vector2

Specifies the pixel offset from which to copy out of the framebuffer.

texture: Texture

Specifies the destination texture.

optional
level: number

Specifies the destination mipmap level of the texture.