CubeTextureLoader

Methods

(inner) load(urls, onLoad, onProgress, onError) → {THREE.CubeTexture}

Source:

Load 6 images as a cube texture

Example
PANOLENS.CubeTextureLoader.load( [ 'px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png' ] )
Parameters:
Name Type Description
urls array

array of 6 urls to images, one for each side of the CubeTexture. The urls should be specified in the following order: pos-x, neg-x, pos-y, neg-y, pos-z, neg-z

onLoad function

On load callback

onProgress function

In progress callback

onError function

On error callback

Returns:
  • Cube texture
Type
THREE.CubeTexture