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#copyTextureToTexture

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

Copies srcTexture to the specified level of dstTexture, offset by the input position.

Parameters

position: Vector2

Specifies the pixel offset into the dstTexture where the copy will occur.

srcTexture: Texture

Specifies the source texture.

dstTexture: Texture

Specifies the destination texture.

optional
level: number

Specifies the destination mipmap level of the texture.