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

DataTexture clean up.

上级 2324c4e8
......@@ -3,22 +3,13 @@
*/
THREE.DataTexture = function ( data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy ) {
if ( magFilter === undefined ) {
magFilter = THREE.NearestFilter;
}
if ( minFilter === undefined ) {
minFilter = THREE.NearestFilter;
}
THREE.Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
this.image = { data: data, width: width, height: height };
this.magFilter = magFilter !== undefined ? magFilter : THREE.NearestFilter;
this.minFilter = minFilter !== undefined ? minFilter : THREE.NearestFilter;
this.flipY = false;
this.generateMipmaps = false;
......@@ -26,4 +17,4 @@ THREE.DataTexture = function ( data, width, height, format, type, mapping, wrapS
};
THREE.DataTexture.prototype = Object.create( THREE.Texture.prototype );
THREE.DataTexture.prototype.constructor = THREE.DataTexture;
\ No newline at end of file
THREE.DataTexture.prototype.constructor = THREE.DataTexture;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册