提交 5d3f8408 编写于 作者: M Mr.doob

Added CanvasTexture.

上级 7bd4bc6f
/**
* @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",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册