Constructor
new CubeTextureLoader( manager : LoadingManager )
Constructs a new cube texture loader.
| manager |
The loading manager. |
Methods
.load( urls : Array.<string>, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) : CubeTexture
Starts loading from the given URL and pass the fully loaded cube texture
to the onLoad() callback. The method also returns a new cube texture object which can
directly be used for material creation. If you do it this way, the cube texture
may pop up in your scene once the respective loading process is finished.
| urls |
Array of 6 URLs to images, one for each side of the cube texture. The urls should be specified in the following order: pos-x, neg-x, pos-y, neg-y, pos-z, neg-z. An array of data URIs are allowed as well. |
| onLoad |
Executed when the loading process has been finished. |
| onProgress |
Unsupported in this loader. |
| onError |
Executed when errors occur. |
- Overrides: Loader#load
- Returns: The cube texture.