function CubeTexture(images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding)
{
	if (mapping === undefined)
	{
		mapping = CubeReflectionMapping;
	}

	var array = [];
	for (var i = 0; i < 6; i++)
	{
		array.push(document.createElement("canvas"));
	}	

	Texture.call(this, array, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding);

	this.images = images !== undefined ? images : [];

	/**
	 * Size of each one of the texture that compose the CubeTexture.
	 *
	 * @property size
	 * @type {number}
	 * @default 512
	 */
	this.size = 512;
	
	this.flipY = false;
	
	/**
	 * Cube texture mode, the mode specifies how the cube texture is created.
	 *
	 * Source format may vary from a mode to another.
	 *
	 * @property mode
	 * @type {number}
	 */
	this.mode = this.images.length === 6 ? CubeTexture.CUBE : CubeTexture.CROSS;

	if (this.images.length > 0)
	{
		this.updateImages();
	}

	this.name = "cubetexture";
	this.category = "Cube";
}
CubeTextures represent 360 view using six images, these images correspond to the faces of a cube.

CubeTextures can be used to simulate reflections and transparency refraction in materials.

Is also possible to create dynamic cubetextures using the CubeCamera object.

@class CubeTexture
@extends {Texture}
@param {Array} images Image array
@param {number} mapping
@param {number} wrapS
@param {number} wrapT
@param {number} magFilter
@param {number} minFilter
@param {number} format
@param {number} type
@param {number} anisotropy
@param {number} encoding