Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/threejs_4_deno/src/Three.d.ts>ImageUtils.loadTexture

A simple transformation of three.js for use within a Deno workflow
Go to Latest
function ImageUtils.loadTexture
Deprecated
Deprecated

Use THREE.TextureLoader() instead.

import { ImageUtils } from "https://deno.land/x/threejs_4_deno@v121/src/Three.d.ts";
const { loadTexture } = ImageUtils;

Parameters

url: string
optional
mapping: Mapping
optional
onLoad: (texture: Texture) => void
optional
onError: (message: string) => void