2
0
Mr.doob 5 жил өмнө
parent
commit
2093a0b6f6

+ 1 - 1
build/three.js

@@ -18238,7 +18238,7 @@
 	// Unroll Loops
 
 	var deprecatedUnrollLoopPattern = /#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g;
-	var unrollLoopPattern = /#pragma unroll_loop_start[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}[\s]+?#pragma unroll_loop_end/g;
+	var unrollLoopPattern = /#pragma unroll_loop_start[\s]+?for\s*\(\s*int i \= (\d+)\; i < (\d+)\; i\s*\+\+\s*\)\s*{([\s\S]+?)(?=\})\}[\s]+?#pragma unroll_loop_end/g;
 
 	function unrollLoops( string ) {
 

+ 17 - 17
build/three.min.js

@@ -692,23 +692,23 @@ J.displacementmap,{referencePosition:{value:new m},nearDistance:{value:1},farDis
 1)},clearcoatNormalMap:{value:null},sheen:{value:new x(0)},transmission:{value:0},transmissionMap:{value:null}}]),vertexShader:U.meshphysical_vert,fragmentShader:U.meshphysical_frag};zb.prototype=Object.create(fa.prototype);zb.prototype.constructor=zb;zb.prototype.isCubeTexture=!0;Object.defineProperty(zb.prototype,"images",{get:function(){return this.image},set:function(a){this.image=a}});Tc.prototype=Object.create(fa.prototype);Tc.prototype.constructor=Tc;Tc.prototype.isDataTexture2DArray=!0;Uc.prototype=
 Object.create(fa.prototype);Uc.prototype.constructor=Uc;Uc.prototype.isDataTexture3D=!0;var Hh=new fa,Jj=new Tc,Lj=new Uc,Ih=new zb,Bh=[],Dh=[],Gh=new Float32Array(16),Fh=new Float32Array(9),Eh=new Float32Array(4);Jh.prototype.updateCache=function(a){var b=this.cache;a instanceof Float32Array&&b.length!==a.length&&(this.cache=new Float32Array(a.length));Ta(b,a)};Kh.prototype.setValue=function(a,b,d){for(var e=this.seq,f=0,g=e.length;f!==g;++f){var h=e[f];h.setValue(a,b[h.id],d)}};var tg=/([\w\d_]+)(\])?(\[|\.)?/g;
 Rb.prototype.setValue=function(a,b,d,e){b=this.map[b];void 0!==b&&b.setValue(a,d,e)};Rb.prototype.setOptional=function(a,b,d){b=b[d];void 0!==b&&this.setValue(a,d,b)};Rb.upload=function(a,b,d,e){for(var f=0,g=b.length;f!==g;++f){var h=b[f],l=d[h.id];!1!==l.needsUpdate&&h.setValue(a,l.value,e)}};Rb.seqWithValue=function(a,b){for(var d=[],e=0,f=a.length;e!==f;++e){var g=a[e];g.id in b&&d.push(g)}return d};var qk=0,vg=/^[ \t]*#include +<([\w\d./]+)>/gm,Th=/#pragma unroll_loop[\s]+?for \( int i = (\d+); i < (\d+); i \+\+ \) \{([\s\S]+?)(?=\})\}/g,
-Sh=/#pragma unroll_loop_start[\s]+?for \( int i = (\d+); i < (\d+); i \+\+ \) \{([\s\S]+?)(?=\})\}[\s]+?#pragma unroll_loop_end/g,Ak=0;Sb.prototype=Object.create(L.prototype);Sb.prototype.constructor=Sb;Sb.prototype.isMeshDepthMaterial=!0;Sb.prototype.copy=function(a){L.prototype.copy.call(this,a);this.depthPacking=a.depthPacking;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.map=a.map;this.alphaMap=a.alphaMap;this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;
-this.displacementBias=a.displacementBias;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;return this};Tb.prototype=Object.create(L.prototype);Tb.prototype.constructor=Tb;Tb.prototype.isMeshDistanceMaterial=!0;Tb.prototype.copy=function(a){L.prototype.copy.call(this,a);this.referencePosition.copy(a.referencePosition);this.nearDistance=a.nearDistance;this.farDistance=a.farDistance;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.map=a.map;this.alphaMap=a.alphaMap;
-this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias;return this};$e.prototype=Object.assign(Object.create(ta.prototype),{constructor:$e,isArrayCamera:!0});Vb.prototype=Object.assign(Object.create(F.prototype),{constructor:Vb,isGroup:!0});Object.assign(Yd.prototype,{constructor:Yd,getHandSpace:function(){if(null===this._hand&&(this._hand=new Vb,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints=[],this._hand.inputState=
-{pinching:!1},window.XRHand))for(var a=0;a<=window.XRHand.LITTLE_PHALANX_TIP;a++){var b=new Vb;b.matrixAutoUpdate=!1;b.visible=!1;this._hand.joints.push(b);this._hand.add(b)}return this._hand},getTargetRaySpace:function(){null===this._targetRay&&(this._targetRay=new Vb,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1);return this._targetRay},getGripSpace:function(){null===this._grip&&(this._grip=new Vb,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1);return this._grip},dispatchEvent:function(a){null!==
-this._targetRay&&this._targetRay.dispatchEvent(a);null!==this._grip&&this._grip.dispatchEvent(a);null!==this._hand&&this._hand.dispatchEvent(a);return this},disconnect:function(a){this.dispatchEvent({type:"disconnected",data:a});null!==this._targetRay&&(this._targetRay.visible=!1);null!==this._grip&&(this._grip.visible=!1);null!==this._hand&&(this._hand.visible=!1);return this},update:function(a,b,d){var e=null,f=null,g=null,h=this._targetRay,l=this._grip,k=this._hand;if(a)if(k&&a.hand){g=!0;for(var m=
-0;m<=window.XRHand.LITTLE_PHALANX_TIP;m++)if(a.hand[m]){var u=b.getJointPose(a.hand[m],d),q=k.joints[m];null!==u&&(q.matrix.fromArray(u.transform.matrix),q.matrix.decompose(q.position,q.rotation,q.scale),q.jointRadius=u.radius);q.visible=null!==u;u=k.joints[window.XRHand.INDEX_PHALANX_TIP].position.distanceTo(k.joints[window.XRHand.THUMB_PHALANX_TIP].position);k.inputState.pinching&&.025<u?(k.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:a.handedness,target:this})):!k.inputState.pinching&&
-.015>=u&&(k.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:a.handedness,target:this}))}}else null!==h&&(e=b.getPose(a.targetRaySpace,d),null!==e&&(h.matrix.fromArray(e.transform.matrix),h.matrix.decompose(h.position,h.rotation,h.scale))),null!==l&&a.gripSpace&&(f=b.getPose(a.gripSpace,d),null!==f&&(l.matrix.fromArray(f.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale)));null!==h&&(h.visible=null!==e);null!==l&&(l.visible=null!==f);null!==k&&(k.visible=null!==
-g);return this}});Object.assign(Zh.prototype,La.prototype);yg.prototype=Object.assign(Object.create(Zd.prototype),{constructor:yg,isWebGL1Renderer:!0});var Hd=function(a,b){this.name="";this.color=new x(a);this.density=void 0!==b?b:2.5E-4};Hd.prototype.clone=function(){return new Hd(this.color,this.density)};Hd.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}};Hd.prototype.isFogExp2=!0;var Id=function(a,b,d){this.name="";this.color=new x(a);this.near=
-void 0!==b?b:1;this.far=void 0!==d?d:1E3};Id.prototype.clone=function(){return new Id(this.color,this.near,this.far)};Id.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}};Id.prototype.isFog=!0;Ab.prototype=Object.create(F.prototype);Ab.prototype.constructor=Ab;Ab.prototype.copy=function(a,b){F.prototype.copy.call(this,a,b);null!==a.background&&(this.background=a.background.clone());null!==a.environment&&(this.environment=a.environment.clone());null!==
-a.fog&&(this.fog=a.fog.clone());null!==a.overrideMaterial&&(this.overrideMaterial=a.overrideMaterial.clone());this.autoUpdate=a.autoUpdate;this.matrixAutoUpdate=a.matrixAutoUpdate;return this};Ab.prototype.toJSON=function(a){var b=F.prototype.toJSON.call(this,a);null!==this.background&&(b.object.background=this.background.toJSON(a));null!==this.environment&&(b.object.environment=this.environment.toJSON(a));null!==this.fog&&(b.object.fog=this.fog.toJSON());return b};Ab.prototype.isScene=!0;Object.defineProperty(Va.prototype,
-"needsUpdate",{set:function(a){!0===a&&this.version++}});Object.assign(Va.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setUsage:function(a){this.usage=a;return this},copy:function(a){this.array=new a.array.constructor(a.array);this.count=a.count;this.stride=a.stride;this.usage=a.usage;return this},copyAt:function(a,b,d){a*=this.stride;d*=b.stride;for(var e=0,f=this.stride;e<f;e++)this.array[a+e]=b.array[d+e];return this},set:function(a,b){void 0===b&&(b=0);this.array.set(a,b);return this},
-clone:function(a){void 0===a.arrayBuffers&&(a.arrayBuffers={});void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=T.generateUUID());void 0===a.arrayBuffers[this.array.buffer._uuid]&&(a.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);a=new this.array.constructor(a.arrayBuffers[this.array.buffer._uuid]);a=new Va(a,this.stride);a.setUsage(this.usage);return a},onUpload:function(a){this.onUploadCallback=a;return this},toJSON:function(a){void 0===a.arrayBuffers&&(a.arrayBuffers=
-{});void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=T.generateUUID());void 0===a.arrayBuffers[this.array.buffer._uuid]&&(a.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer)));return{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}});var Fc=new m;Object.defineProperties(Wb.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}},needsUpdate:{set:function(a){this.data.needsUpdate=
-a}}});Object.assign(Wb.prototype,{isInterleavedBufferAttribute:!0,applyMatrix4:function(a){for(var b=0,d=this.data.count;b<d;b++)Fc.x=this.getX(b),Fc.y=this.getY(b),Fc.z=this.getZ(b),Fc.applyMatrix4(a),this.setXYZ(b,Fc.x,Fc.y,Fc.z);return this},setX:function(a,b){this.data.array[a*this.data.stride+this.offset]=b;return this},setY:function(a,b){this.data.array[a*this.data.stride+this.offset+1]=b;return this},setZ:function(a,b){this.data.array[a*this.data.stride+this.offset+2]=b;return this},setW:function(a,
-b){this.data.array[a*this.data.stride+this.offset+3]=b;return this},getX:function(a){return this.data.array[a*this.data.stride+this.offset]},getY:function(a){return this.data.array[a*this.data.stride+this.offset+1]},getZ:function(a){return this.data.array[a*this.data.stride+this.offset+2]},getW:function(a){return this.data.array[a*this.data.stride+this.offset+3]},setXY:function(a,b,d){a=a*this.data.stride+this.offset;this.data.array[a+0]=b;this.data.array[a+1]=d;return this},setXYZ:function(a,b,d,
-e){a=a*this.data.stride+this.offset;this.data.array[a+0]=b;this.data.array[a+1]=d;this.data.array[a+2]=e;return this},setXYZW:function(a,b,d,e,f){a=a*this.data.stride+this.offset;this.data.array[a+0]=b;this.data.array[a+1]=d;this.data.array[a+2]=e;this.data.array[a+3]=f;return this},clone:function(a){if(void 0===a){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");a=[];for(var b=0;b<this.count;b++)for(var d=b*this.data.stride+
-this.offset,e=0;e<this.itemSize;e++)a.push(this.data.array[d+e]);return new N(new this.array.constructor(a),this.itemSize,this.normalized)}void 0===a.interleavedBuffers&&(a.interleavedBuffers={});void 0===a.interleavedBuffers[this.data.uuid]&&(a.interleavedBuffers[this.data.uuid]=this.data.clone(a));return new Wb(a.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)},toJSON:function(a){if(void 0===a){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");
+Sh=/#pragma unroll_loop_start[\s]+?for\s*\(\s*int i = (\d+); i < (\d+); i\s*\+\+\s*\)\s*{([\s\S]+?)(?=\})\}[\s]+?#pragma unroll_loop_end/g,Ak=0;Sb.prototype=Object.create(L.prototype);Sb.prototype.constructor=Sb;Sb.prototype.isMeshDepthMaterial=!0;Sb.prototype.copy=function(a){L.prototype.copy.call(this,a);this.depthPacking=a.depthPacking;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.map=a.map;this.alphaMap=a.alphaMap;this.displacementMap=a.displacementMap;this.displacementScale=
+a.displacementScale;this.displacementBias=a.displacementBias;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;return this};Tb.prototype=Object.create(L.prototype);Tb.prototype.constructor=Tb;Tb.prototype.isMeshDistanceMaterial=!0;Tb.prototype.copy=function(a){L.prototype.copy.call(this,a);this.referencePosition.copy(a.referencePosition);this.nearDistance=a.nearDistance;this.farDistance=a.farDistance;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.map=a.map;this.alphaMap=
+a.alphaMap;this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias;return this};$e.prototype=Object.assign(Object.create(ta.prototype),{constructor:$e,isArrayCamera:!0});Vb.prototype=Object.assign(Object.create(F.prototype),{constructor:Vb,isGroup:!0});Object.assign(Yd.prototype,{constructor:Yd,getHandSpace:function(){if(null===this._hand&&(this._hand=new Vb,this._hand.matrixAutoUpdate=!1,this._hand.visible=!1,this._hand.joints=[],
+this._hand.inputState={pinching:!1},window.XRHand))for(var a=0;a<=window.XRHand.LITTLE_PHALANX_TIP;a++){var b=new Vb;b.matrixAutoUpdate=!1;b.visible=!1;this._hand.joints.push(b);this._hand.add(b)}return this._hand},getTargetRaySpace:function(){null===this._targetRay&&(this._targetRay=new Vb,this._targetRay.matrixAutoUpdate=!1,this._targetRay.visible=!1);return this._targetRay},getGripSpace:function(){null===this._grip&&(this._grip=new Vb,this._grip.matrixAutoUpdate=!1,this._grip.visible=!1);return this._grip},
+dispatchEvent:function(a){null!==this._targetRay&&this._targetRay.dispatchEvent(a);null!==this._grip&&this._grip.dispatchEvent(a);null!==this._hand&&this._hand.dispatchEvent(a);return this},disconnect:function(a){this.dispatchEvent({type:"disconnected",data:a});null!==this._targetRay&&(this._targetRay.visible=!1);null!==this._grip&&(this._grip.visible=!1);null!==this._hand&&(this._hand.visible=!1);return this},update:function(a,b,d){var e=null,f=null,g=null,h=this._targetRay,l=this._grip,k=this._hand;
+if(a)if(k&&a.hand){g=!0;for(var m=0;m<=window.XRHand.LITTLE_PHALANX_TIP;m++)if(a.hand[m]){var u=b.getJointPose(a.hand[m],d),q=k.joints[m];null!==u&&(q.matrix.fromArray(u.transform.matrix),q.matrix.decompose(q.position,q.rotation,q.scale),q.jointRadius=u.radius);q.visible=null!==u;u=k.joints[window.XRHand.INDEX_PHALANX_TIP].position.distanceTo(k.joints[window.XRHand.THUMB_PHALANX_TIP].position);k.inputState.pinching&&.025<u?(k.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:a.handedness,
+target:this})):!k.inputState.pinching&&.015>=u&&(k.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:a.handedness,target:this}))}}else null!==h&&(e=b.getPose(a.targetRaySpace,d),null!==e&&(h.matrix.fromArray(e.transform.matrix),h.matrix.decompose(h.position,h.rotation,h.scale))),null!==l&&a.gripSpace&&(f=b.getPose(a.gripSpace,d),null!==f&&(l.matrix.fromArray(f.transform.matrix),l.matrix.decompose(l.position,l.rotation,l.scale)));null!==h&&(h.visible=null!==e);null!==l&&(l.visible=
+null!==f);null!==k&&(k.visible=null!==g);return this}});Object.assign(Zh.prototype,La.prototype);yg.prototype=Object.assign(Object.create(Zd.prototype),{constructor:yg,isWebGL1Renderer:!0});var Hd=function(a,b){this.name="";this.color=new x(a);this.density=void 0!==b?b:2.5E-4};Hd.prototype.clone=function(){return new Hd(this.color,this.density)};Hd.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}};Hd.prototype.isFogExp2=!0;var Id=function(a,b,d){this.name=
+"";this.color=new x(a);this.near=void 0!==b?b:1;this.far=void 0!==d?d:1E3};Id.prototype.clone=function(){return new Id(this.color,this.near,this.far)};Id.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}};Id.prototype.isFog=!0;Ab.prototype=Object.create(F.prototype);Ab.prototype.constructor=Ab;Ab.prototype.copy=function(a,b){F.prototype.copy.call(this,a,b);null!==a.background&&(this.background=a.background.clone());null!==a.environment&&(this.environment=
+a.environment.clone());null!==a.fog&&(this.fog=a.fog.clone());null!==a.overrideMaterial&&(this.overrideMaterial=a.overrideMaterial.clone());this.autoUpdate=a.autoUpdate;this.matrixAutoUpdate=a.matrixAutoUpdate;return this};Ab.prototype.toJSON=function(a){var b=F.prototype.toJSON.call(this,a);null!==this.background&&(b.object.background=this.background.toJSON(a));null!==this.environment&&(b.object.environment=this.environment.toJSON(a));null!==this.fog&&(b.object.fog=this.fog.toJSON());return b};Ab.prototype.isScene=
+!0;Object.defineProperty(Va.prototype,"needsUpdate",{set:function(a){!0===a&&this.version++}});Object.assign(Va.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setUsage:function(a){this.usage=a;return this},copy:function(a){this.array=new a.array.constructor(a.array);this.count=a.count;this.stride=a.stride;this.usage=a.usage;return this},copyAt:function(a,b,d){a*=this.stride;d*=b.stride;for(var e=0,f=this.stride;e<f;e++)this.array[a+e]=b.array[d+e];return this},set:function(a,b){void 0===
+b&&(b=0);this.array.set(a,b);return this},clone:function(a){void 0===a.arrayBuffers&&(a.arrayBuffers={});void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=T.generateUUID());void 0===a.arrayBuffers[this.array.buffer._uuid]&&(a.arrayBuffers[this.array.buffer._uuid]=this.array.slice(0).buffer);a=new this.array.constructor(a.arrayBuffers[this.array.buffer._uuid]);a=new Va(a,this.stride);a.setUsage(this.usage);return a},onUpload:function(a){this.onUploadCallback=a;return this},toJSON:function(a){void 0===
+a.arrayBuffers&&(a.arrayBuffers={});void 0===this.array.buffer._uuid&&(this.array.buffer._uuid=T.generateUUID());void 0===a.arrayBuffers[this.array.buffer._uuid]&&(a.arrayBuffers[this.array.buffer._uuid]=Array.prototype.slice.call(new Uint32Array(this.array.buffer)));return{uuid:this.uuid,buffer:this.array.buffer._uuid,type:this.array.constructor.name,stride:this.stride}}});var Fc=new m;Object.defineProperties(Wb.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}},
+needsUpdate:{set:function(a){this.data.needsUpdate=a}}});Object.assign(Wb.prototype,{isInterleavedBufferAttribute:!0,applyMatrix4:function(a){for(var b=0,d=this.data.count;b<d;b++)Fc.x=this.getX(b),Fc.y=this.getY(b),Fc.z=this.getZ(b),Fc.applyMatrix4(a),this.setXYZ(b,Fc.x,Fc.y,Fc.z);return this},setX:function(a,b){this.data.array[a*this.data.stride+this.offset]=b;return this},setY:function(a,b){this.data.array[a*this.data.stride+this.offset+1]=b;return this},setZ:function(a,b){this.data.array[a*this.data.stride+
+this.offset+2]=b;return this},setW:function(a,b){this.data.array[a*this.data.stride+this.offset+3]=b;return this},getX:function(a){return this.data.array[a*this.data.stride+this.offset]},getY:function(a){return this.data.array[a*this.data.stride+this.offset+1]},getZ:function(a){return this.data.array[a*this.data.stride+this.offset+2]},getW:function(a){return this.data.array[a*this.data.stride+this.offset+3]},setXY:function(a,b,d){a=a*this.data.stride+this.offset;this.data.array[a+0]=b;this.data.array[a+
+1]=d;return this},setXYZ:function(a,b,d,e){a=a*this.data.stride+this.offset;this.data.array[a+0]=b;this.data.array[a+1]=d;this.data.array[a+2]=e;return this},setXYZW:function(a,b,d,e,f){a=a*this.data.stride+this.offset;this.data.array[a+0]=b;this.data.array[a+1]=d;this.data.array[a+2]=e;this.data.array[a+3]=f;return this},clone:function(a){if(void 0===a){console.log("THREE.InterleavedBufferAttribute.clone(): Cloning an interlaved buffer attribute will deinterleave buffer data.");a=[];for(var b=0;b<
+this.count;b++)for(var d=b*this.data.stride+this.offset,e=0;e<this.itemSize;e++)a.push(this.data.array[d+e]);return new N(new this.array.constructor(a),this.itemSize,this.normalized)}void 0===a.interleavedBuffers&&(a.interleavedBuffers={});void 0===a.interleavedBuffers[this.data.uuid]&&(a.interleavedBuffers[this.data.uuid]=this.data.clone(a));return new Wb(a.interleavedBuffers[this.data.uuid],this.itemSize,this.offset,this.normalized)},toJSON:function(a){if(void 0===a){console.log("THREE.InterleavedBufferAttribute.toJSON(): Serializing an interlaved buffer attribute will deinterleave buffer data.");
 a=[];for(var b=0;b<this.count;b++)for(var d=b*this.data.stride+this.offset,e=0;e<this.itemSize;e++)a.push(this.data.array[d+e]);return{itemSize:this.itemSize,type:this.array.constructor.name,array:a,normalized:this.normalized}}void 0===a.interleavedBuffers&&(a.interleavedBuffers={});void 0===a.interleavedBuffers[this.data.uuid]&&(a.interleavedBuffers[this.data.uuid]=this.data.toJSON(a));return{isInterleavedBufferAttribute:!0,itemSize:this.itemSize,data:this.data.uuid,offset:this.offset,normalized:this.normalized}}});
 Xb.prototype=Object.create(L.prototype);Xb.prototype.constructor=Xb;Xb.prototype.isSpriteMaterial=!0;Xb.prototype.copy=function(a){L.prototype.copy.call(this,a);this.color.copy(a.color);this.map=a.map;this.alphaMap=a.alphaMap;this.rotation=a.rotation;this.sizeAttenuation=a.sizeAttenuation;return this};var Wc,Pe=new m,Jd=new m,Kd=new m,Xc=new p,ae=new p,ai=new z,Uf=new m,Qe=new m,Vf=new m,Fi=new p,oh=new p,Gi=new p;$d.prototype=Object.assign(Object.create(F.prototype),{constructor:$d,isSprite:!0,raycast:function(a,
 b){null===a.camera&&console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.');Jd.setFromMatrixScale(this.matrixWorld);ai.copy(a.camera.matrixWorld);this.modelViewMatrix.multiplyMatrices(a.camera.matrixWorldInverse,this.matrixWorld);Kd.setFromMatrixPosition(this.modelViewMatrix);a.camera.isPerspectiveCamera&&!1===this.material.sizeAttenuation&&Jd.multiplyScalar(-Kd.z);var d=this.material.rotation;if(0!==d){var e=Math.cos(d);var f=Math.sin(d)}d=this.center;

+ 1 - 1
build/three.module.js

@@ -18295,7 +18295,7 @@ function includeReplacer( match, include ) {
 // Unroll Loops
 
 const deprecatedUnrollLoopPattern = /#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g;
-const unrollLoopPattern = /#pragma unroll_loop_start[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}[\s]+?#pragma unroll_loop_end/g;
+const unrollLoopPattern = /#pragma unroll_loop_start[\s]+?for\s*\(\s*int i \= (\d+)\; i < (\d+)\; i\s*\+\+\s*\)\s*{([\s\S]+?)(?=\})\}[\s]+?#pragma unroll_loop_end/g;
 
 function unrollLoops( string ) {