提交 1392204c 编写于 作者: M Mugen87

Updated builds.

上级 b749f96a
......@@ -26648,7 +26648,7 @@
update: function () {
if ( _identityMatrix ) {
if ( _identityMatrix === undefined ) {
_offsetMatrix = new Matrix4();
_identityMatrix = new Matrix4();
// threejs.org/license
(function(k,la){"object"===typeof exports&&"undefined"!==typeof module?la(exports):"function"===typeof define&&define.amd?define(["exports"],la):(k=k||self,la(k.THREE={}))})(this,function(k){function la(){}function z(a,b){this.x=a||0;this.y=b||0}function ta(a,b,c,d){this._x=a||0;this._y=b||0;this._z=c||0;this._w=void 0!==d?d:1}function n(a,b,c){this.x=a||0;this.y=b||0;this.z=c||0}function va(){this.elements=[1,0,0,0,1,0,0,0,1];0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}
function Y(a,b,c,d,e,f,g,h,l,m){Object.defineProperty(this,"id",{value:Ai++});this.uuid=P.generateUUID();this.name="";this.image=void 0!==a?a:Y.DEFAULT_IMAGE;this.mipmaps=[];this.mapping=void 0!==b?b:Y.DEFAULT_MAPPING;this.wrapS=void 0!==c?c:1001;this.wrapT=void 0!==d?d:1001;this.magFilter=void 0!==e?e:1006;this.minFilter=void 0!==f?f:1008;this.anisotropy=void 0!==l?l:1;this.format=void 0!==g?g:1023;this.type=void 0!==h?h:1009;this.offset=new z(0,0);this.repeat=new z(1,1);this.center=new z(0,0);this.rotation=
0;this.matrixAutoUpdate=!0;this.matrix=new va;this.generateMipmaps=!0;this.premultiplyAlpha=!1;this.flipY=!0;this.unpackAlignment=4;this.encoding=void 0!==m?m:3E3;this.version=0;this.onUpdate=null}function ia(a,b,c,d){this.x=a||0;this.y=b||0;this.z=c||0;this.w=void 0!==d?d:1}function hb(a,b,c){this.width=a;this.height=b;this.scissor=new ia(0,0,a,b);this.scissorTest=!1;this.viewport=new ia(0,0,a,b);c=c||{};this.texture=new Y(void 0,void 0,c.wrapS,c.wrapT,c.magFilter,c.minFilter,c.format,c.type,c.anisotropy,
......@@ -667,11 +666,11 @@ b.length){Hc.setFromMatrixPosition(a.matrixWorld);Sf.setFromMatrixPosition(this.
Object.assign(Object.create(S.prototype),{constructor:Wd,isSkinnedMesh:!0,bind:function(a,b){this.skeleton=a;void 0===b&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),b=this.matrixWorld);this.bindMatrix.copy(b);this.bindMatrixInverse.getInverse(b)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){for(var a=new ia,b=this.geometry.attributes.skinWeight,c=0,d=b.count;c<d;c++){a.x=b.getX(c);a.y=b.getY(c);a.z=b.getZ(c);a.w=b.getW(c);var e=1/a.manhattanLength();Infinity!==
e?a.multiplyScalar(e):a.set(1,0,0,0);b.setXYZW(c,a.x,a.y,a.z,a.w)}},updateMatrixWorld:function(a){S.prototype.updateMatrixWorld.call(this,a);"attached"===this.bindMode?this.bindMatrixInverse.getInverse(this.matrixWorld):"detached"===this.bindMode?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh: Unrecognized bindMode: "+this.bindMode)},clone:function(){return(new this.constructor(this.geometry,this.material)).copy(this)}});var ch,dh;Object.assign(hf.prototype,{calculateInverses:function(){this.boneInverses=
[];for(var a=0,b=this.bones.length;a<b;a++){var c=new Q;this.bones[a]&&c.getInverse(this.bones[a].matrixWorld);this.boneInverses.push(c)}},pose:function(){var a,b;var c=0;for(b=this.bones.length;c<b;c++)(a=this.bones[c])&&a.matrixWorld.getInverse(this.boneInverses[c]);c=0;for(b=this.bones.length;c<b;c++)if(a=this.bones[c])a.parent&&a.parent.isBone?(a.matrix.getInverse(a.parent.matrixWorld),a.matrix.multiply(a.matrixWorld)):a.matrix.copy(a.matrixWorld),a.matrix.decompose(a.position,a.quaternion,a.scale)},
update:function(){dh&&(ch=new Q,dh=new Q);for(var a=this.bones,b=this.boneInverses,c=this.boneMatrices,d=this.boneTexture,e=0,f=a.length;e<f;e++)ch.multiplyMatrices(a[e]?a[e].matrixWorld:dh,b[e]),ch.toArray(c,16*e);void 0!==d&&(d.needsUpdate=!0)},clone:function(){return new hf(this.bones,this.boneInverses)},getBoneByName:function(a){for(var b=0,c=this.bones.length;b<c;b++){var d=this.bones[b];if(d.name===a)return d}}});ug.prototype=Object.assign(Object.create(C.prototype),{constructor:ug,isBone:!0});
ba.prototype=Object.create(R.prototype);ba.prototype.constructor=ba;ba.prototype.isLineBasicMaterial=!0;ba.prototype.copy=function(a){R.prototype.copy.call(this,a);this.color.copy(a.color);this.linewidth=a.linewidth;this.linecap=a.linecap;this.linejoin=a.linejoin;return this};var eh,Tf,fh,Qe,Ic;xa.prototype=Object.assign(Object.create(C.prototype),{constructor:xa,isLine:!0,computeLineDistances:function(){void 0===Tf&&(eh=new n,Tf=new n);var a=this.geometry;if(a.isBufferGeometry)if(null===a.index){for(var b=
a.attributes.position,c=[0],d=1,e=b.count;d<e;d++)eh.fromBufferAttribute(b,d-1),Tf.fromBufferAttribute(b,d),c[d]=c[d-1],c[d]+=eh.distanceTo(Tf);a.addAttribute("lineDistance",new A(c,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(a.isGeometry)for(b=a.vertices,c=a.lineDistances,c[0]=0,d=1,e=b.length;d<e;d++)c[d]=c[d-1],c[d]+=b[d-1].distanceTo(b[d]);return this},raycast:function(a,b){void 0===Ic&&(fh=new Q,Qe=new bc,Ic=new ib);
var c=a.linePrecision,d=this.geometry,e=this.matrixWorld;null===d.boundingSphere&&d.computeBoundingSphere();Ic.copy(d.boundingSphere);Ic.applyMatrix4(e);Ic.radius+=c;if(!1!==a.ray.intersectsSphere(Ic)){fh.getInverse(e);Qe.copy(a.ray).applyMatrix4(fh);c/=(this.scale.x+this.scale.y+this.scale.z)/3;c*=c;var f=new n,g=new n;e=new n;var h=new n,l=this&&this.isLineSegments?2:1;if(d.isBufferGeometry){var m=d.index,k=d.attributes.position.array;if(null!==m){m=m.array;d=0;for(var t=m.length-1;d<t;d+=l){var u=
m[d+1];f.fromArray(k,3*m[d]);g.fromArray(k,3*u);u=Qe.distanceSqToSegment(f,g,h,e);u>c||(h.applyMatrix4(this.matrixWorld),u=a.ray.origin.distanceTo(h),u<a.near||u>a.far||b.push({distance:u,point:e.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this}))}}else for(d=0,t=k.length/3-1;d<t;d+=l)f.fromArray(k,3*d),g.fromArray(k,3*d+3),u=Qe.distanceSqToSegment(f,g,h,e),u>c||(h.applyMatrix4(this.matrixWorld),u=a.ray.origin.distanceTo(h),u<a.near||u>a.far||b.push({distance:u,
update:function(){void 0===dh&&(ch=new Q,dh=new Q);for(var a=this.bones,b=this.boneInverses,c=this.boneMatrices,d=this.boneTexture,e=0,f=a.length;e<f;e++)ch.multiplyMatrices(a[e]?a[e].matrixWorld:dh,b[e]),ch.toArray(c,16*e);void 0!==d&&(d.needsUpdate=!0)},clone:function(){return new hf(this.bones,this.boneInverses)},getBoneByName:function(a){for(var b=0,c=this.bones.length;b<c;b++){var d=this.bones[b];if(d.name===a)return d}}});ug.prototype=Object.assign(Object.create(C.prototype),{constructor:ug,
isBone:!0});ba.prototype=Object.create(R.prototype);ba.prototype.constructor=ba;ba.prototype.isLineBasicMaterial=!0;ba.prototype.copy=function(a){R.prototype.copy.call(this,a);this.color.copy(a.color);this.linewidth=a.linewidth;this.linecap=a.linecap;this.linejoin=a.linejoin;return this};var eh,Tf,fh,Qe,Ic;xa.prototype=Object.assign(Object.create(C.prototype),{constructor:xa,isLine:!0,computeLineDistances:function(){void 0===Tf&&(eh=new n,Tf=new n);var a=this.geometry;if(a.isBufferGeometry)if(null===
a.index){for(var b=a.attributes.position,c=[0],d=1,e=b.count;d<e;d++)eh.fromBufferAttribute(b,d-1),Tf.fromBufferAttribute(b,d),c[d]=c[d-1],c[d]+=eh.distanceTo(Tf);a.addAttribute("lineDistance",new A(c,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(a.isGeometry)for(b=a.vertices,c=a.lineDistances,c[0]=0,d=1,e=b.length;d<e;d++)c[d]=c[d-1],c[d]+=b[d-1].distanceTo(b[d]);return this},raycast:function(a,b){void 0===Ic&&(fh=new Q,
Qe=new bc,Ic=new ib);var c=a.linePrecision,d=this.geometry,e=this.matrixWorld;null===d.boundingSphere&&d.computeBoundingSphere();Ic.copy(d.boundingSphere);Ic.applyMatrix4(e);Ic.radius+=c;if(!1!==a.ray.intersectsSphere(Ic)){fh.getInverse(e);Qe.copy(a.ray).applyMatrix4(fh);c/=(this.scale.x+this.scale.y+this.scale.z)/3;c*=c;var f=new n,g=new n;e=new n;var h=new n,l=this&&this.isLineSegments?2:1;if(d.isBufferGeometry){var m=d.index,k=d.attributes.position.array;if(null!==m){m=m.array;d=0;for(var t=m.length-
1;d<t;d+=l){var u=m[d+1];f.fromArray(k,3*m[d]);g.fromArray(k,3*u);u=Qe.distanceSqToSegment(f,g,h,e);u>c||(h.applyMatrix4(this.matrixWorld),u=a.ray.origin.distanceTo(h),u<a.near||u>a.far||b.push({distance:u,point:e.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this}))}}else for(d=0,t=k.length/3-1;d<t;d+=l)f.fromArray(k,3*d),g.fromArray(k,3*d+3),u=Qe.distanceSqToSegment(f,g,h,e),u>c||(h.applyMatrix4(this.matrixWorld),u=a.ray.origin.distanceTo(h),u<a.near||u>a.far||b.push({distance:u,
point:e.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this}))}else if(d.isGeometry)for(f=d.vertices,g=f.length,d=0;d<g-1;d+=l)u=Qe.distanceSqToSegment(f[d],f[d+1],h,e),u>c||(h.applyMatrix4(this.matrixWorld),u=a.ray.origin.distanceTo(h),u<a.near||u>a.far||b.push({distance:u,point:e.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this}))}},clone:function(){return(new this.constructor(this.geometry,this.material)).copy(this)}});var Re,Ed;
aa.prototype=Object.assign(Object.create(xa.prototype),{constructor:aa,isLineSegments:!0,computeLineDistances:function(){void 0===Ed&&(Re=new n,Ed=new n);var a=this.geometry;if(a.isBufferGeometry)if(null===a.index){for(var b=a.attributes.position,c=[],d=0,e=b.count;d<e;d+=2)Re.fromBufferAttribute(b,d),Ed.fromBufferAttribute(b,d+1),c[d]=0===d?0:c[d-1],c[d+1]=c[d]+Re.distanceTo(Ed);a.addAttribute("lineDistance",new A(c,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
else if(a.isGeometry)for(b=a.vertices,c=a.lineDistances,d=0,e=b.length;d<e;d+=2)Re.copy(b[d]),Ed.copy(b[d+1]),c[d]=0===d?0:c[d-1],c[d+1]=c[d]+Re.distanceTo(Ed);return this}});jf.prototype=Object.assign(Object.create(xa.prototype),{constructor:jf,isLineLoop:!0});Va.prototype=Object.create(R.prototype);Va.prototype.constructor=Va;Va.prototype.isPointsMaterial=!0;Va.prototype.copy=function(a){R.prototype.copy.call(this,a);this.color.copy(a.color);this.map=a.map;this.size=a.size;this.sizeAttenuation=
......
......@@ -26642,7 +26642,7 @@ Object.assign( Skeleton.prototype, {
update: function () {
if ( _identityMatrix ) {
if ( _identityMatrix === undefined ) {
_offsetMatrix = new Matrix4();
_identityMatrix = new Matrix4();
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册