Skip to content

Documentation / @ripl/3d / loadTexture

Function: loadTexture() ​

loadTexture(url, options?): Promise<Texture>

Defined in: 3d/src/core/texture.ts:214

Loads an image from a URL and wraps it in a Texture.

Parameters ​

ParameterTypeDescription
urlstringThe image URL.
options?TextureOptionsSampling and transform options.

Returns ​

Promise<Texture>

A promise resolving once the image has decoded.