@@ -0,0 +1,14 @@
+/**
+ * @author mrdoob / http://mrdoob.com/
+ */
+
+THREE.CanvasTexture = function ( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
+ THREE.Texture.call( this, canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
+ this.needsUpdate = true;
+};
+THREE.CanvasTexture.prototype = Object.create( THREE.Texture.prototype );
+THREE.CanvasTexture.prototype.constructor = THREE.CanvasTexture;
@@ -76,7 +76,7 @@ THREE.Texture.prototype = {
this.anisotropy = source.anisotropy;
- this.format = source.format;
+ this.format = source.format;
this.type = source.type;
this.offset.copy( source.offset );
@@ -71,6 +71,7 @@
"src/materials/RawShaderMaterial.js",
"src/materials/SpriteMaterial.js",
"src/textures/Texture.js",
+ "src/textures/CanvasTexture.js",
"src/textures/CubeTexture.js",
"src/textures/CompressedTexture.js",
"src/textures/DataTexture.js",