[page:Texture] →

[name]

Creates a cube texture made up of six images.

Example

var loader = new v3d.CubeTextureLoader(); loader.setPath('textures/cube/pisa/'); var textureCube = loader.load([ 'px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png' ]); var material = new v3d.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 v3d.CubeReflectionMapping] (default) or [page:Textures v3d.CubeRefractionMapping]

Properties

See [page:Texture]

Methods

See [page:Texture]

[sourceHint]