|
@@ -8,7 +8,6 @@ THREE.CubeTexture = function ( images, mapping, wrapS, wrapT, magFilter, minFilt
|
|
|
|
|
|
THREE.Texture.call( this, images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
|
|
|
|
|
|
- this.images = images;
|
|
|
this.flipY = false;
|
|
|
|
|
|
};
|
|
@@ -16,12 +15,12 @@ THREE.CubeTexture = function ( images, mapping, wrapS, wrapT, magFilter, minFilt
|
|
|
THREE.CubeTexture.prototype = Object.create( THREE.Texture.prototype );
|
|
|
THREE.CubeTexture.prototype.constructor = THREE.CubeTexture;
|
|
|
|
|
|
-THREE.CubeTexture.prototype.copy = function ( source ) {
|
|
|
-
|
|
|
- THREE.Texture.prototype.copy.call( this, source );
|
|
|
-
|
|
|
- this.images = source.images;
|
|
|
-
|
|
|
- return this;
|
|
|
-
|
|
|
-};
|
|
|
+Object.defineProperty(THREE.CubeTexture.prototype, "images", {
|
|
|
+ get: function() {
|
|
|
+ return this.image;
|
|
|
+ },
|
|
|
+ set: function( value ) {
|
|
|
+ this.image = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+);
|