TextureLoader
class TextureLoader extends Loader
Texture loader
Methods
constructor
new TextureLoader(view3D)
Create new TextureLoader instance
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
view3D | View3D | An 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>
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
url | string | url to fetch image |
loadHDRTexture
Create new texture with given HDR(RGBE) image url
Returns: Promise<THREE.Texture>
PARAMETER | TYPE | OPTIONAL | DEFAULT | DESCRIPTION |
---|---|---|---|---|
url | string | image url |