CubePanorama

CubePanorama

Cubemap-based panorama

Constructor

new CubePanorama(images)

Source:
Parameters:
Name Type Description
images 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

Methods

createMaterial()

Source:

Create material

dispose()

Source:

Dispose

load()

Source:

Load 6 images and bind listeners

onLoad(texture)

Source:

This will be called when 6 textures are ready

Parameters:
Name Type Description
texture THREE.CubeTexture

Cube texture