Load an Array of provided source URL paths
The source URLs to load
Additional options which modify loading
A Promise which resolves once all textures are loaded
Load a single texture on-demand from a given source URL path
The source texture path to load
The loaded texture object
Load an image texture from a provided source url.
The source image URL
The loaded BaseTexture
Load a video texture from a provided source url
The source video URL
The loaded BaseTexture
Add an image url to the texture cache
The source URL
The loaded base texture
Retrieve a texture from the texture cache
The source URL
The cached texture, or undefined
Expire (and destroy) textures from the cache which have not been used for more than CACHE_TTL milliseconds.
Load all the textures which are required for a particular Scene
The Scene to load
Additional options that configure texture loading
Use the Fetch API to retrieve a resource and return a Blob instance for it.
Options to configure the loading behaviour.
A Blob containing the loaded data
Return a URL with a cache-busting query parameter appended.
The source URL being attempted
The new URL, or false on a failure.
Log texture loading progress in the console and in the Scene loading bar
The source URL being loaded
Loading progress
Log failed texture loading
The source URL being loaded
Loading progress
The error which occurred
The cached mapping of textures
The duration in milliseconds for which a texture will remain cached
A Loader class which helps with loading video and image textures.