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

CubeTexture: clone flipY. See #6838.

上级 4b6fd812
......@@ -5,12 +5,11 @@
THREE.CubeTexture = function ( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
mapping = mapping !== undefined ? mapping : THREE.CubeReflectionMapping;
THREE.Texture.call( this, images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
this.images = images;
this.flipY = false;
this.flipY = false;
};
......@@ -24,6 +23,7 @@ THREE.CubeTexture.clone = function ( texture ) {
THREE.Texture.prototype.clone.call( this, texture );
texture.images = this.images;
texture.flipY = this.flipY;
return texture;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册