[page:Texture] →

[name]

Creates a cube texture made up of six images.

Example

var path = "textures/cube/pisa/"; var format = '.png'; var urls = [ path + 'px' + format, path + 'nx' + format, path + 'py' + format, path + 'ny' + format, path + 'pz' + format, path + 'nz' + format ]; var textureCube = THREE.ImageUtils.loadTextureCube( urls ); var material = new THREE.MeshBasicMaterial( { color: 0xffffff, envMap: textureCube } );

Constructor

[name]( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy )

CubeTexture is almost equivalent in functionality and usage to [page:Texture]. The only differences are that the images are an array of 6 images as opposed to a single image, and the mapping options are [page:Textures THREE.CubeReflectionMapping] (default) or [page:Textures THREE.CubeRefractionMapping]

Generally [page:ImageUtils.loadTextureCube] is used instead of using CubeTexture directly.

Properties

See [page:Texture]

Methods

See [page:Texture]

Source

[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]