Skip to main content

TextureLoader

class TextureLoader extends Loader

Texture loader

constructor

new TextureLoader(view3D)

Create new TextureLoader instance

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
view3DView3DAn instance of View3D

Methods

load

Create new Texture with given url
Texture's flipY property is true by Three.js's policy, so be careful when using it as a map texture.

Returns: Promise<THREE.Texture>

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
urlstringurl to fetch image

loadHDRTexture

Create new texture with given HDR(RGBE) image url

Returns: Promise<THREE.Texture>

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
urlstringimage url