Browse Source

Updated builds.

Mr.doob 8 years ago
parent
commit
1797542543
3 changed files with 359 additions and 353 deletions
  1. 4 1
      build/three.js
  2. 351 351
      build/three.min.js
  3. 4 1
      build/three.module.js

+ 4 - 1
build/three.js

@@ -459,7 +459,7 @@
 
 		nearestPowerOfTwo: function ( value ) {
 
-			return Math.pow( 2, Math.round( Math.log( value ) / Math.LN2 ) );
+			return Math.pow( 2, Math.floor( Math.log( value ) / Math.LN2 ) );
 
 		},
 
@@ -3715,6 +3715,7 @@
 
 			this.offset.copy( source.offset );
 			this.repeat.copy( source.repeat );
+			this.center.copy( source.center );
 			this.rotation = source.rotation;
 
 			this.matrixAutoUpdate = source.matrixAutoUpdate;
@@ -3792,6 +3793,7 @@
 
 				repeat: [ this.repeat.x, this.repeat.y ],
 				offset: [ this.offset.x, this.offset.y ],
+				center: [ this.center.x, this.center.y ],
 				rotation: this.rotation,
 
 				wrap: [ this.wrapS, this.wrapT ],
@@ -34608,6 +34610,7 @@
 
 					if ( data.offset !== undefined ) texture.offset.fromArray( data.offset );
 					if ( data.repeat !== undefined ) texture.repeat.fromArray( data.repeat );
+					if ( data.center !== undefined ) texture.center.fromArray( data.center );
 					if ( data.rotation !== undefined ) texture.rotation = data.rotation;
 
 					if ( data.wrap !== undefined ) {

File diff suppressed because it is too large
+ 351 - 351
build/three.min.js


+ 4 - 1
build/three.module.js

@@ -453,7 +453,7 @@ var _Math = {
 
 	nearestPowerOfTwo: function ( value ) {
 
-		return Math.pow( 2, Math.round( Math.log( value ) / Math.LN2 ) );
+		return Math.pow( 2, Math.floor( Math.log( value ) / Math.LN2 ) );
 
 	},
 
@@ -3709,6 +3709,7 @@ Object.assign( Texture.prototype, EventDispatcher.prototype, {
 
 		this.offset.copy( source.offset );
 		this.repeat.copy( source.repeat );
+		this.center.copy( source.center );
 		this.rotation = source.rotation;
 
 		this.matrixAutoUpdate = source.matrixAutoUpdate;
@@ -3786,6 +3787,7 @@ Object.assign( Texture.prototype, EventDispatcher.prototype, {
 
 			repeat: [ this.repeat.x, this.repeat.y ],
 			offset: [ this.offset.x, this.offset.y ],
+			center: [ this.center.x, this.center.y ],
 			rotation: this.rotation,
 
 			wrap: [ this.wrapS, this.wrapT ],
@@ -34602,6 +34604,7 @@ Object.assign( ObjectLoader.prototype, {
 
 				if ( data.offset !== undefined ) texture.offset.fromArray( data.offset );
 				if ( data.repeat !== undefined ) texture.repeat.fromArray( data.repeat );
+				if ( data.center !== undefined ) texture.center.fromArray( data.center );
 				if ( data.rotation !== undefined ) texture.rotation = data.rotation;
 
 				if ( data.wrap !== undefined ) {

Some files were not shown because too many files changed in this diff