Browse Source

Serialize complete texture info (numeric).

tschw 10 years ago
parent
commit
612aa17d75
1 changed files with 12 additions and 1 deletions
  1. 12 1
      src/textures/Texture.js

+ 12 - 1
src/textures/Texture.js

@@ -109,8 +109,19 @@ THREE.Texture.prototype = {
 				type: 'Texture',
 				type: 'Texture',
 				generator: 'Texture.toJSON'
 				generator: 'Texture.toJSON'
 			},
 			},
+
 			uuid: this.uuid,
 			uuid: this.uuid,
-			mapping: this.mapping
+			name: this.name,
+
+			mapping: this.mapping,
+
+			repeat: [ this.repeat.x, this.repeat.y ],
+			offset: [ this.offset.x, this.offset.y ],
+			wrap: [ this.wrapS, this.wrapT ],
+
+			minFilter: this.minFilter,
+			magFilter: this.magFilter,
+			anisotropy: this.anisotropy
 		};
 		};
 
 
 		if ( this.image !== undefined ) {
 		if ( this.image !== undefined ) {