提交 810bc8b3 编写于 作者: M Mr.doob

Updated builds.

上级 3cc44aa0
...@@ -23165,35 +23165,6 @@ ...@@ -23165,35 +23165,6 @@
this.dispose = function () {}; this.dispose = function () {};
// DEPRECATED
this.getStandingMatrix = function () {
console.warn( 'THREE.WebXRManager: getStandingMatrix() is no longer needed.' );
return new Matrix4();
};
this.getDevice = function () {
console.warn( 'THREE.WebXRManager: getDevice() has been deprecated.' );
};
this.setDevice = function () {
console.warn( 'THREE.WebXRManager: setDevice() has been deprecated.' );
};
this.setFrameOfReferenceType = function () {
console.warn( 'THREE.WebXRManager: setFrameOfReferenceType() has been deprecated.' );
};
this.submitFrame = function () {};
} }
Object.assign( WebXRManager.prototype, EventDispatcher.prototype ); Object.assign( WebXRManager.prototype, EventDispatcher.prototype );
...@@ -26161,6 +26132,8 @@ ...@@ -26161,6 +26132,8 @@
* @author benaadams / https://twitter.com/ben_a_adams * @author benaadams / https://twitter.com/ben_a_adams
*/ */
var _vector$7 = new Vector3();
function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normalized ) { function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normalized ) {
this.data = interleavedBuffer; this.data = interleavedBuffer;
...@@ -26199,6 +26172,24 @@ ...@@ -26199,6 +26172,24 @@
isInterleavedBufferAttribute: true, isInterleavedBufferAttribute: true,
applyMatrix4: function ( m ) {
for ( var i = 0, l = this.data.count; i < l; i ++ ) {
_vector$7.x = this.getX( i );
_vector$7.y = this.getY( i );
_vector$7.z = this.getZ( i );
_vector$7.applyMatrix4( m );
this.setXYZ( i, _vector$7.x, _vector$7.y, _vector$7.z );
}
return this;
},
setX: function ( index, x ) { setX: function ( index, x ) {
this.data.array[ index * this.data.stride + this.offset ] = x; this.data.array[ index * this.data.stride + this.offset ] = x;
...@@ -45457,7 +45448,7 @@ ...@@ -45457,7 +45448,7 @@
* @author bhouston / http://clara.io * @author bhouston / http://clara.io
*/ */
var _vector$7 = new Vector2(); var _vector$8 = new Vector2();
function Box2( min, max ) { function Box2( min, max ) {
...@@ -45493,7 +45484,7 @@ ...@@ -45493,7 +45484,7 @@
setFromCenterAndSize: function ( center, size ) { setFromCenterAndSize: function ( center, size ) {
var halfSize = _vector$7.copy( size ).multiplyScalar( 0.5 ); var halfSize = _vector$8.copy( size ).multiplyScalar( 0.5 );
this.min.copy( center ).sub( halfSize ); this.min.copy( center ).sub( halfSize );
this.max.copy( center ).add( halfSize ); this.max.copy( center ).add( halfSize );
...@@ -45643,7 +45634,7 @@ ...@@ -45643,7 +45634,7 @@
distanceToPoint: function ( point ) { distanceToPoint: function ( point ) {
var clampedPoint = _vector$7.copy( point ).clamp( this.min, this.max ); var clampedPoint = _vector$8.copy( point ).clamp( this.min, this.max );
return clampedPoint.sub( point ).length(); return clampedPoint.sub( point ).length();
}, },
...@@ -46082,7 +46073,7 @@ ...@@ -46082,7 +46073,7 @@
* @author WestLangley / http://github.com/WestLangley * @author WestLangley / http://github.com/WestLangley
*/ */
var _vector$8 = new Vector3(); var _vector$9 = new Vector3();
function SpotLightHelper( light, color ) { function SpotLightHelper( light, color ) {
...@@ -46148,9 +46139,9 @@ ...@@ -46148,9 +46139,9 @@
this.cone.scale.set( coneWidth, coneWidth, coneLength ); this.cone.scale.set( coneWidth, coneWidth, coneLength );
_vector$8.setFromMatrixPosition( this.light.target.matrixWorld ); _vector$9.setFromMatrixPosition( this.light.target.matrixWorld );
this.cone.lookAt( _vector$8 ); this.cone.lookAt( _vector$9 );
if ( this.color !== undefined ) { if ( this.color !== undefined ) {
...@@ -46172,7 +46163,7 @@ ...@@ -46172,7 +46163,7 @@
* @author Mugen87 / https://github.com/Mugen87 * @author Mugen87 / https://github.com/Mugen87
*/ */
var _vector$9 = new Vector3(); var _vector$a = new Vector3();
var _boneMatrix = new Matrix4(); var _boneMatrix = new Matrix4();
var _matrixWorldInv = new Matrix4(); var _matrixWorldInv = new Matrix4();
...@@ -46257,12 +46248,12 @@ ...@@ -46257,12 +46248,12 @@
if ( bone.parent && bone.parent.isBone ) { if ( bone.parent && bone.parent.isBone ) {
_boneMatrix.multiplyMatrices( _matrixWorldInv, bone.matrixWorld ); _boneMatrix.multiplyMatrices( _matrixWorldInv, bone.matrixWorld );
_vector$9.setFromMatrixPosition( _boneMatrix ); _vector$a.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j, _vector$9.x, _vector$9.y, _vector$9.z ); position.setXYZ( j, _vector$a.x, _vector$a.y, _vector$a.z );
_boneMatrix.multiplyMatrices( _matrixWorldInv, bone.parent.matrixWorld ); _boneMatrix.multiplyMatrices( _matrixWorldInv, bone.parent.matrixWorld );
_vector$9.setFromMatrixPosition( _boneMatrix ); _vector$a.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j + 1, _vector$9.x, _vector$9.y, _vector$9.z ); position.setXYZ( j + 1, _vector$a.x, _vector$a.y, _vector$a.z );
j += 2; j += 2;
...@@ -46444,7 +46435,7 @@ ...@@ -46444,7 +46435,7 @@
* @author Mugen87 / https://github.com/Mugen87 * @author Mugen87 / https://github.com/Mugen87
*/ */
var _vector$a = new Vector3(); var _vector$b = new Vector3();
var _color1 = new Color(); var _color1 = new Color();
var _color2 = new Color(); var _color2 = new Color();
...@@ -46514,7 +46505,7 @@ ...@@ -46514,7 +46505,7 @@
} }
mesh.lookAt( _vector$a.setFromMatrixPosition( this.light.matrixWorld ).negate() ); mesh.lookAt( _vector$b.setFromMatrixPosition( this.light.matrixWorld ).negate() );
}; };
...@@ -47113,7 +47104,7 @@ ...@@ -47113,7 +47104,7 @@
* http://evanw.github.com/lightgl.js/tests/shadowmap.html * http://evanw.github.com/lightgl.js/tests/shadowmap.html
*/ */
var _vector$b = new Vector3(); var _vector$c = new Vector3();
var _camera = new Camera(); var _camera = new Camera();
function CameraHelper( camera ) { function CameraHelper( camera ) {
...@@ -47278,7 +47269,7 @@ ...@@ -47278,7 +47269,7 @@
function setPoint( point, pointMap, geometry, camera, x, y, z ) { function setPoint( point, pointMap, geometry, camera, x, y, z ) {
_vector$b.set( x, y, z ).unproject( camera ); _vector$c.set( x, y, z ).unproject( camera );
var points = pointMap[ point ]; var points = pointMap[ point ];
...@@ -47288,7 +47279,7 @@ ...@@ -47288,7 +47279,7 @@
for ( var i = 0, l = points.length; i < l; i ++ ) { for ( var i = 0, l = points.length; i < l; i ++ ) {
position.setXYZ( points[ i ], _vector$b.x, _vector$b.y, _vector$b.z ); position.setXYZ( points[ i ], _vector$c.x, _vector$c.y, _vector$c.z );
} }
...@@ -49290,7 +49281,7 @@ ...@@ -49290,7 +49281,7 @@
vr: { vr: {
get: function () { get: function () {
console.warn( 'THREE.WebGLRenderer: .vr has been removed. Use .xr instead.' ); console.warn( 'THREE.WebGLRenderer: .vr has been renamed to .xr' );
return this.xr; return this.xr;
} }
此差异已折叠。
...@@ -23157,35 +23157,6 @@ function WebXRManager( renderer, gl ) { ...@@ -23157,35 +23157,6 @@ function WebXRManager( renderer, gl ) {
this.dispose = function () {}; this.dispose = function () {};
// DEPRECATED
this.getStandingMatrix = function () {
console.warn( 'THREE.WebXRManager: getStandingMatrix() is no longer needed.' );
return new Matrix4();
};
this.getDevice = function () {
console.warn( 'THREE.WebXRManager: getDevice() has been deprecated.' );
};
this.setDevice = function () {
console.warn( 'THREE.WebXRManager: setDevice() has been deprecated.' );
};
this.setFrameOfReferenceType = function () {
console.warn( 'THREE.WebXRManager: setFrameOfReferenceType() has been deprecated.' );
};
this.submitFrame = function () {};
} }
Object.assign( WebXRManager.prototype, EventDispatcher.prototype ); Object.assign( WebXRManager.prototype, EventDispatcher.prototype );
...@@ -26153,6 +26124,8 @@ Object.assign( InterleavedBuffer.prototype, { ...@@ -26153,6 +26124,8 @@ Object.assign( InterleavedBuffer.prototype, {
* @author benaadams / https://twitter.com/ben_a_adams * @author benaadams / https://twitter.com/ben_a_adams
*/ */
var _vector$7 = new Vector3();
function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normalized ) { function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset, normalized ) {
this.data = interleavedBuffer; this.data = interleavedBuffer;
...@@ -26191,6 +26164,24 @@ Object.assign( InterleavedBufferAttribute.prototype, { ...@@ -26191,6 +26164,24 @@ Object.assign( InterleavedBufferAttribute.prototype, {
isInterleavedBufferAttribute: true, isInterleavedBufferAttribute: true,
applyMatrix4: function ( m ) {
for ( var i = 0, l = this.data.count; i < l; i ++ ) {
_vector$7.x = this.getX( i );
_vector$7.y = this.getY( i );
_vector$7.z = this.getZ( i );
_vector$7.applyMatrix4( m );
this.setXYZ( i, _vector$7.x, _vector$7.y, _vector$7.z );
}
return this;
},
setX: function ( index, x ) { setX: function ( index, x ) {
this.data.array[ index * this.data.stride + this.offset ] = x; this.data.array[ index * this.data.stride + this.offset ] = x;
...@@ -45449,7 +45440,7 @@ Object.assign( Cylindrical.prototype, { ...@@ -45449,7 +45440,7 @@ Object.assign( Cylindrical.prototype, {
* @author bhouston / http://clara.io * @author bhouston / http://clara.io
*/ */
var _vector$7 = new Vector2(); var _vector$8 = new Vector2();
function Box2( min, max ) { function Box2( min, max ) {
...@@ -45485,7 +45476,7 @@ Object.assign( Box2.prototype, { ...@@ -45485,7 +45476,7 @@ Object.assign( Box2.prototype, {
setFromCenterAndSize: function ( center, size ) { setFromCenterAndSize: function ( center, size ) {
var halfSize = _vector$7.copy( size ).multiplyScalar( 0.5 ); var halfSize = _vector$8.copy( size ).multiplyScalar( 0.5 );
this.min.copy( center ).sub( halfSize ); this.min.copy( center ).sub( halfSize );
this.max.copy( center ).add( halfSize ); this.max.copy( center ).add( halfSize );
...@@ -45635,7 +45626,7 @@ Object.assign( Box2.prototype, { ...@@ -45635,7 +45626,7 @@ Object.assign( Box2.prototype, {
distanceToPoint: function ( point ) { distanceToPoint: function ( point ) {
var clampedPoint = _vector$7.copy( point ).clamp( this.min, this.max ); var clampedPoint = _vector$8.copy( point ).clamp( this.min, this.max );
return clampedPoint.sub( point ).length(); return clampedPoint.sub( point ).length();
}, },
...@@ -46074,7 +46065,7 @@ VertexTangentsHelper.prototype.update = function () { ...@@ -46074,7 +46065,7 @@ VertexTangentsHelper.prototype.update = function () {
* @author WestLangley / http://github.com/WestLangley * @author WestLangley / http://github.com/WestLangley
*/ */
var _vector$8 = new Vector3(); var _vector$9 = new Vector3();
function SpotLightHelper( light, color ) { function SpotLightHelper( light, color ) {
...@@ -46140,9 +46131,9 @@ SpotLightHelper.prototype.update = function () { ...@@ -46140,9 +46131,9 @@ SpotLightHelper.prototype.update = function () {
this.cone.scale.set( coneWidth, coneWidth, coneLength ); this.cone.scale.set( coneWidth, coneWidth, coneLength );
_vector$8.setFromMatrixPosition( this.light.target.matrixWorld ); _vector$9.setFromMatrixPosition( this.light.target.matrixWorld );
this.cone.lookAt( _vector$8 ); this.cone.lookAt( _vector$9 );
if ( this.color !== undefined ) { if ( this.color !== undefined ) {
...@@ -46164,7 +46155,7 @@ SpotLightHelper.prototype.update = function () { ...@@ -46164,7 +46155,7 @@ SpotLightHelper.prototype.update = function () {
* @author Mugen87 / https://github.com/Mugen87 * @author Mugen87 / https://github.com/Mugen87
*/ */
var _vector$9 = new Vector3(); var _vector$a = new Vector3();
var _boneMatrix = new Matrix4(); var _boneMatrix = new Matrix4();
var _matrixWorldInv = new Matrix4(); var _matrixWorldInv = new Matrix4();
...@@ -46249,12 +46240,12 @@ SkeletonHelper.prototype.updateMatrixWorld = function ( force ) { ...@@ -46249,12 +46240,12 @@ SkeletonHelper.prototype.updateMatrixWorld = function ( force ) {
if ( bone.parent && bone.parent.isBone ) { if ( bone.parent && bone.parent.isBone ) {
_boneMatrix.multiplyMatrices( _matrixWorldInv, bone.matrixWorld ); _boneMatrix.multiplyMatrices( _matrixWorldInv, bone.matrixWorld );
_vector$9.setFromMatrixPosition( _boneMatrix ); _vector$a.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j, _vector$9.x, _vector$9.y, _vector$9.z ); position.setXYZ( j, _vector$a.x, _vector$a.y, _vector$a.z );
_boneMatrix.multiplyMatrices( _matrixWorldInv, bone.parent.matrixWorld ); _boneMatrix.multiplyMatrices( _matrixWorldInv, bone.parent.matrixWorld );
_vector$9.setFromMatrixPosition( _boneMatrix ); _vector$a.setFromMatrixPosition( _boneMatrix );
position.setXYZ( j + 1, _vector$9.x, _vector$9.y, _vector$9.z ); position.setXYZ( j + 1, _vector$a.x, _vector$a.y, _vector$a.z );
j += 2; j += 2;
...@@ -46436,7 +46427,7 @@ RectAreaLightHelper.prototype.dispose = function () { ...@@ -46436,7 +46427,7 @@ RectAreaLightHelper.prototype.dispose = function () {
* @author Mugen87 / https://github.com/Mugen87 * @author Mugen87 / https://github.com/Mugen87
*/ */
var _vector$a = new Vector3(); var _vector$b = new Vector3();
var _color1 = new Color(); var _color1 = new Color();
var _color2 = new Color(); var _color2 = new Color();
...@@ -46506,7 +46497,7 @@ HemisphereLightHelper.prototype.update = function () { ...@@ -46506,7 +46497,7 @@ HemisphereLightHelper.prototype.update = function () {
} }
mesh.lookAt( _vector$a.setFromMatrixPosition( this.light.matrixWorld ).negate() ); mesh.lookAt( _vector$b.setFromMatrixPosition( this.light.matrixWorld ).negate() );
}; };
...@@ -47107,7 +47098,7 @@ DirectionalLightHelper.prototype.update = function () { ...@@ -47107,7 +47098,7 @@ DirectionalLightHelper.prototype.update = function () {
* http://evanw.github.com/lightgl.js/tests/shadowmap.html * http://evanw.github.com/lightgl.js/tests/shadowmap.html
*/ */
var _vector$b = new Vector3(); var _vector$c = new Vector3();
var _camera = new Camera(); var _camera = new Camera();
function CameraHelper( camera ) { function CameraHelper( camera ) {
...@@ -47272,7 +47263,7 @@ CameraHelper.prototype.update = function () { ...@@ -47272,7 +47263,7 @@ CameraHelper.prototype.update = function () {
function setPoint( point, pointMap, geometry, camera, x, y, z ) { function setPoint( point, pointMap, geometry, camera, x, y, z ) {
_vector$b.set( x, y, z ).unproject( camera ); _vector$c.set( x, y, z ).unproject( camera );
var points = pointMap[ point ]; var points = pointMap[ point ];
...@@ -47282,7 +47273,7 @@ function setPoint( point, pointMap, geometry, camera, x, y, z ) { ...@@ -47282,7 +47273,7 @@ function setPoint( point, pointMap, geometry, camera, x, y, z ) {
for ( var i = 0, l = points.length; i < l; i ++ ) { for ( var i = 0, l = points.length; i < l; i ++ ) {
position.setXYZ( points[ i ], _vector$b.x, _vector$b.y, _vector$b.z ); position.setXYZ( points[ i ], _vector$c.x, _vector$c.y, _vector$c.z );
} }
...@@ -49284,7 +49275,7 @@ Object.defineProperties( WebGLRenderer.prototype, { ...@@ -49284,7 +49275,7 @@ Object.defineProperties( WebGLRenderer.prototype, {
vr: { vr: {
get: function () { get: function () {
console.warn( 'THREE.WebGLRenderer: .vr has been removed. Use .xr instead.' ); console.warn( 'THREE.WebGLRenderer: .vr has been renamed to .xr' );
return this.xr; return this.xr;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册