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

x/threejs_4_deno/src/extras/ImageUtils.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 TextureLoader | THREE.TextureLoader() instead.

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

Parameters

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