|
@@ -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 ) {
|