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

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

Initializes the given texture. Can be used to preload a texture rather than waiting until first render (which can cause noticeable lags due to decode and GPU upload overhead).

Parameters

texture: Texture

The texture to Initialize.