function WebcamTexture(mapping, wrapS, wrapT, type, anisotropy)
{	
	var video = document.createElement("video");
	video.autoplay = true;
	video.loop = true;

	/**
	 * Image is used to store a DOM video element
	 * 
	 * @property image
	 * @type {Element}
	 */
	Texture.call(this, video, mapping, wrapS, wrapT, LinearFilter, LinearFilter, RGBFormat, type, anisotropy);
	
	var self = this;
	
	this.generateMipmaps = false;
	this.disposed = false;
	this.name = "webcam";
	this.category = "Webcam";	
	this.mode = WebcamTexture.USER;

	/**
	 * Webcam video, media stream
	 *
	 * @property stream
	 * @type {MediaStream}
	 */
	this.stream = null;

	this.connect();

	// Webcam video update loop
	function update()
	{
		if (video.readyState >= video.HAVE_CURRENT_DATA)
		{
			self.needsUpdate = true;
		}

		if (!self.disposed)
		{
			requestAnimationFrame(update);
		}
	};
	requestAnimationFrame(update);
}
Webcam texture is used to capture and display video from a webcam in real-time.

It uses WebRTC, the host must support it, otherwise WebcamTexture will display a black image.

@class WebcamTexture
@extends {Texture}
@param {number} mapping
@param {number} wrapS
@param {number} wrapT
@param {number} type
@param {number} anisotropy