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 ​
| Parameter | Type | Description |
|---|---|---|
url | string | The image URL. |
options? | TextureOptions | Sampling and transform options. |
Returns ​
Promise<Texture>
A promise resolving once the image has decoded.