|
@@ -196,147 +196,147 @@ e.state.pointShadowMatrix);a=d.program.getUniforms();a=Eb.seqWithValue(a.seq,c);
|
|
|
b,d):h.needsLights&&h.lightsStateVersion!==l.state.version?p(c,b,d):void 0===h.numClippingPlanes||h.numClippingPlanes===Va.numPlanes&&h.numIntersection===Va.numIntersection?h.outputEncoding!==g&&p(c,b,d):p(c,b,d):(p(c,b,d),h.__version=c.version);var m=!1,t=!1,k=!1;b=h.program;g=b.getUniforms();l=h.uniforms;V.useProgram(b.program)&&(k=t=m=!0);c.id!==H&&(H=c.id,t=!0);if(m||S!==a){g.setValue(I,"projectionMatrix",a.projectionMatrix);Fa.logarithmicDepthBuffer&&g.setValue(I,"logDepthBufFC",2/(Math.log(a.far+
|
|
|
1)/Math.LN2));S!==a&&(S=a,k=t=!0);if(c.isShaderMaterial||c.isMeshPhongMaterial||c.isMeshToonMaterial||c.isMeshStandardMaterial||c.envMap)m=g.map.cameraPosition,void 0!==m&&m.setValue(I,Hb.setFromMatrixPosition(a.matrixWorld));(c.isMeshPhongMaterial||c.isMeshToonMaterial||c.isMeshLambertMaterial||c.isMeshBasicMaterial||c.isMeshStandardMaterial||c.isShaderMaterial)&&g.setValue(I,"isOrthographic",!0===a.isOrthographicCamera);(c.isMeshPhongMaterial||c.isMeshToonMaterial||c.isMeshLambertMaterial||c.isMeshBasicMaterial||
|
|
|
c.isMeshStandardMaterial||c.isShaderMaterial||c.skinning)&&g.setValue(I,"viewMatrix",a.matrixWorldInverse)}if(c.skinning&&(g.setOptional(I,d,"bindMatrix"),g.setOptional(I,d,"bindMatrixInverse"),a=d.skeleton))if(m=a.bones,Fa.floatVertexTextures){if(void 0===a.boneTexture){m=Math.sqrt(4*m.length);m=L.ceilPowerOfTwo(m);m=Math.max(m,4);var q=new Float32Array(m*m*4);q.set(a.boneMatrices);var v=new Zb(q,m,m,1023,1015);a.boneMatrices=q;a.boneTexture=v;a.boneTextureSize=m}g.setValue(I,"boneTexture",a.boneTexture,
|
|
|
-ba);g.setValue(I,"boneTextureSize",a.boneTextureSize)}else g.setOptional(I,a,"boneMatrices");if(t||h.receiveShadow!==d.receiveShadow)h.receiveShadow=d.receiveShadow,g.setValue(I,"receiveShadow",d.receiveShadow);t&&(g.setValue(I,"toneMappingExposure",O.toneMappingExposure),g.setValue(I,"toneMappingWhitePoint",O.toneMappingWhitePoint),h.needsLights&&(t=k,l.ambientLightColor.needsUpdate=t,l.lightProbe.needsUpdate=t,l.directionalLights.needsUpdate=t,l.directionalLightShadows.needsUpdate=t,l.pointLights.needsUpdate=
|
|
|
-t,l.pointLightShadows.needsUpdate=t,l.spotLights.needsUpdate=t,l.spotLightShadows.needsUpdate=t,l.rectAreaLights.needsUpdate=t,l.hemisphereLights.needsUpdate=t),e&&c.fog&&xa.refreshFogUniforms(l,e),xa.refreshMaterialUniforms(l,c,f,X,Pa),void 0!==l.ltc_1&&(l.ltc_1.value=E.LTC_1),void 0!==l.ltc_2&&(l.ltc_2.value=E.LTC_2),Eb.upload(I,h.uniformsList,l,ba));c.isShaderMaterial&&!0===c.uniformsNeedUpdate&&(Eb.upload(I,h.uniformsList,l,ba),c.uniformsNeedUpdate=!1);c.isSpriteMaterial&&g.setValue(I,"center",
|
|
|
-d.center);g.setValue(I,"modelViewMatrix",d.modelViewMatrix);g.setValue(I,"normalMatrix",d.normalMatrix);g.setValue(I,"modelMatrix",d.matrixWorld);return b}a=a||{};var q=void 0!==a.canvas?a.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),r=void 0!==a.context?a.context:null,u=void 0!==a.alpha?a.alpha:!1,A=void 0!==a.depth?a.depth:!0,z=void 0!==a.stencil?a.stencil:!0,x=void 0!==a.antialias?a.antialias:!1,Ba=void 0!==a.premultipliedAlpha?a.premultipliedAlpha:!0,ma=void 0!==a.preserveDrawingBuffer?
|
|
|
-a.preserveDrawingBuffer:!1,N=void 0!==a.powerPreference?a.powerPreference:"default",C=void 0!==a.failIfMajorPerformanceCaveat?a.failIfMajorPerformanceCaveat:!1,P=null,y=null;this.domElement=q;this.debug={checkShaderErrors:!0};this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0;this.clippingPlanes=[];this.localClippingEnabled=!1;this.gammaFactor=2;this.outputEncoding=3E3;this.physicallyCorrectLights=!1;this.toneMapping=0;this.toneMappingWhitePoint=this.toneMappingExposure=
|
|
|
-1;this.maxMorphTargets=8;this.maxMorphNormals=4;var O=this,B=!1,D=null,F=0,J=0,G=null,K=null,H=-1;var Q=b=null;var Le=!1;var S=null,R=null,aa=new ea,U=new ea,ca=null,Y=q.width,Pa=q.height,X=1,ha=null,ja=null,Z=new ea(0,0,Y,Pa),da=new ea(0,0,Y,Pa),ka=!1,na=new Ec,Va=new oj,Je=!1,kg=!1,Jd=new M,Hb=new n,lg={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};try{u={alpha:u,depth:A,stencil:z,antialias:x,premultipliedAlpha:Ba,preserveDrawingBuffer:ma,powerPreference:N,failIfMajorPerformanceCaveat:C};
|
|
|
-q.addEventListener("webglcontextlost",d,!1);q.addEventListener("webglcontextrestored",e,!1);var I=r||q.getContext("webgl",u)||q.getContext("experimental-webgl",u);if(null===I){if(null!==q.getContext("webgl"))throw Error("Error creating WebGL context with your selected attributes.");throw Error("Error creating WebGL context.");}void 0===I.getShaderPrecisionFormat&&(I.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(Wh){throw console.error("THREE.WebGLRenderer: "+
|
|
|
-Wh.message),Wh;}var ra,Fa,V,W,T,ba,la,ua,oa,sa,xa,wa,va,pa,ya,Aa,Da,qa;c();var ta=new Vh(O,I);this.xr=ta;var Ea=new Th(O,oa,Fa.maxTextureSize);this.shadowMap=Ea;this.getContext=function(){return I};this.getContextAttributes=function(){return I.getContextAttributes()};this.forceContextLoss=function(){var a=ra.get("WEBGL_lose_context");a&&a.loseContext()};this.forceContextRestore=function(){var a=ra.get("WEBGL_lose_context");a&&a.restoreContext()};this.getPixelRatio=function(){return X};this.setPixelRatio=
|
|
|
-function(a){void 0!==a&&(X=a,this.setSize(Y,Pa,!1))};this.getSize=function(a){void 0===a&&(console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"),a=new w);return a.set(Y,Pa)};this.setSize=function(a,b,c){ta.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(Y=a,Pa=b,q.width=Math.floor(a*X),q.height=Math.floor(b*X),!1!==c&&(q.style.width=a+"px",q.style.height=b+"px"),this.setViewport(0,0,a,b))};this.getDrawingBufferSize=function(a){void 0===
|
|
|
-a&&(console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"),a=new w);return a.set(Y*X,Pa*X).floor()};this.setDrawingBufferSize=function(a,b,c){Y=a;Pa=b;X=c;q.width=Math.floor(a*c);q.height=Math.floor(b*c);this.setViewport(0,0,a,b)};this.getCurrentViewport=function(a){void 0===a&&(console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"),a=new ea);return a.copy(aa)};this.getViewport=function(a){return a.copy(Z)};this.setViewport=
|
|
|
-function(a,b,c,d){a.isVector4?Z.set(a.x,a.y,a.z,a.w):Z.set(a,b,c,d);V.viewport(aa.copy(Z).multiplyScalar(X).floor())};this.getScissor=function(a){return a.copy(da)};this.setScissor=function(a,b,c,d){a.isVector4?da.set(a.x,a.y,a.z,a.w):da.set(a,b,c,d);V.scissor(U.copy(da).multiplyScalar(X).floor())};this.getScissorTest=function(){return ka};this.setScissorTest=function(a){V.setScissorTest(ka=a)};this.setOpaqueSort=function(a){ha=a};this.setTransparentSort=function(a){ja=a};this.getClearColor=function(){return pa.getClearColor()};
|
|
|
-this.setClearColor=function(){pa.setClearColor.apply(pa,arguments)};this.getClearAlpha=function(){return pa.getClearAlpha()};this.setClearAlpha=function(){pa.setClearAlpha.apply(pa,arguments)};this.clear=function(a,b,c){var d=0;if(void 0===a||a)d|=16384;if(void 0===b||b)d|=256;if(void 0===c||c)d|=1024;I.clear(d)};this.clearColor=function(){this.clear(!0,!1,!1)};this.clearDepth=function(){this.clear(!1,!0,!1)};this.clearStencil=function(){this.clear(!1,!1,!0)};this.dispose=function(){q.removeEventListener("webglcontextlost",
|
|
|
-d,!1);q.removeEventListener("webglcontextrestored",e,!1);wa.dispose();va.dispose();T.dispose();oa.dispose();ta.dispose();za.stop()};this.renderBufferImmediate=function(a,b){V.initAttributes();var c=T.get(a);a.hasPositions&&!c.position&&(c.position=I.createBuffer());a.hasNormals&&!c.normal&&(c.normal=I.createBuffer());a.hasUvs&&!c.uv&&(c.uv=I.createBuffer());a.hasColors&&!c.color&&(c.color=I.createBuffer());b=b.getAttributes();a.hasPositions&&(I.bindBuffer(34962,c.position),I.bufferData(34962,a.positionArray,
|
|
|
-35048),V.enableAttribute(b.position),I.vertexAttribPointer(b.position,3,5126,!1,0,0));a.hasNormals&&(I.bindBuffer(34962,c.normal),I.bufferData(34962,a.normalArray,35048),V.enableAttribute(b.normal),I.vertexAttribPointer(b.normal,3,5126,!1,0,0));a.hasUvs&&(I.bindBuffer(34962,c.uv),I.bufferData(34962,a.uvArray,35048),V.enableAttribute(b.uv),I.vertexAttribPointer(b.uv,2,5126,!1,0,0));a.hasColors&&(I.bindBuffer(34962,c.color),I.bufferData(34962,a.colorArray,35048),V.enableAttribute(b.color),I.vertexAttribPointer(b.color,
|
|
|
-3,5126,!1,0,0));V.disableUnusedAttributes();I.drawArrays(4,0,a.count);a.count=0};this.renderBufferDirect=function(a,c,d,e,f,g){null===c&&(c=lg);var h=f.isMesh&&0>f.matrixWorld.determinant(),l=k(a,c,e,f);V.setMaterial(e,h);var m=!1;if(b!==d.id||Q!==l.id||Le!==(!0===e.wireframe))b=d.id,Q=l.id,Le=!0===e.wireframe,m=!0;if(e.morphTargets||e.morphNormals)ya.update(f,d,e,l),m=!0;!0===f.isInstancedMesh&&(m=!0);a=d.index;c=d.attributes.position;if(null===a){if(void 0===c||0===c.count)return}else if(0===a.count)return;
|
|
|
-var t=1;!0===e.wireframe&&(a=ua.getWireframeAttribute(d),t=2);h=Aa;if(null!==a){var p=la.get(a);h=Da;h.setIndex(p)}if(m){if(!1!==Fa.isWebGL2||!f.isInstancedMesh&&!d.isInstancedBufferGeometry||null!==ra.get("ANGLE_instanced_arrays")){V.initAttributes();m=d.attributes;l=l.getAttributes();var q=e.defaultAttributeValues;for(N in l){var v=l[N];if(0<=v){var r=m[N];if(void 0!==r){var u=r.normalized,n=r.itemSize,A=la.get(r);if(void 0!==A){var x=A.buffer,z=A.type;A=A.bytesPerElement;if(r.isInterleavedBufferAttribute){var C=
|
|
|
-r.data,w=C.stride;r=r.offset;C&&C.isInstancedInterleavedBuffer?(V.enableAttributeAndDivisor(v,C.meshPerAttribute),void 0===d._maxInstanceCount&&(d._maxInstanceCount=C.meshPerAttribute*C.count)):V.enableAttribute(v);I.bindBuffer(34962,x);V.vertexAttribPointer(v,n,z,u,w*A,r*A)}else r.isInstancedBufferAttribute?(V.enableAttributeAndDivisor(v,r.meshPerAttribute),void 0===d._maxInstanceCount&&(d._maxInstanceCount=r.meshPerAttribute*r.count)):V.enableAttribute(v),I.bindBuffer(34962,x),V.vertexAttribPointer(v,
|
|
|
-n,z,u,0,0)}}else if("instanceMatrix"===N)n=la.get(f.instanceMatrix),void 0!==n&&(u=n.buffer,n=n.type,V.enableAttributeAndDivisor(v+0,1),V.enableAttributeAndDivisor(v+1,1),V.enableAttributeAndDivisor(v+2,1),V.enableAttributeAndDivisor(v+3,1),I.bindBuffer(34962,u),I.vertexAttribPointer(v+0,4,n,!1,64,0),I.vertexAttribPointer(v+1,4,n,!1,64,16),I.vertexAttribPointer(v+2,4,n,!1,64,32),I.vertexAttribPointer(v+3,4,n,!1,64,48));else if(void 0!==q&&(u=q[N],void 0!==u))switch(u.length){case 2:I.vertexAttrib2fv(v,
|
|
|
-u);break;case 3:I.vertexAttrib3fv(v,u);break;case 4:I.vertexAttrib4fv(v,u);break;default:I.vertexAttrib1fv(v,u)}}}V.disableUnusedAttributes()}null!==a&&I.bindBuffer(34963,p.buffer)}var N=d.drawRange.start*t;m=null!==g?g.start*t:0;p=Math.max(N,m);g=Math.max(0,Math.min(null!==a?a.count:c.count,N+d.drawRange.count*t,m+(null!==g?g.count*t:Infinity))-1-p+1);0!==g&&(f.isMesh?!0===e.wireframe?(V.setLineWidth(e.wireframeLinewidth*(null===G?X:1)),h.setMode(1)):h.setMode(4):f.isLine?(e=e.linewidth,void 0===
|
|
|
-e&&(e=1),V.setLineWidth(e*(null===G?X:1)),f.isLineSegments?h.setMode(1):f.isLineLoop?h.setMode(2):h.setMode(3)):f.isPoints?h.setMode(0):f.isSprite&&h.setMode(4),f.isInstancedMesh?h.renderInstances(d,p,g,f.count):d.isInstancedBufferGeometry?h.renderInstances(d,p,g,Math.min(d.instanceCount,d._maxInstanceCount)):h.render(p,g))};this.compile=function(a,b){y=va.get(a,b);y.init();a.traverse(function(a){a.isLight&&(y.pushLight(a),a.castShadow&&y.pushShadow(a))});y.setupLights(b);var c={};a.traverse(function(b){var d=
|
|
|
-b.material;if(d)if(Array.isArray(d))for(var e=0;e<d.length;e++){var f=d[e];!1===f.uuid in c&&(p(f,a,b),c[f.uuid]=!0)}else!1===d.uuid in c&&(p(d,a,b),c[d.uuid]=!0)})};var Ca=null,za=new wh;za.setAnimationLoop(function(a){ta.isPresenting||Ca&&Ca(a)});"undefined"!==typeof window&&za.setContext(window);this.setAnimationLoop=function(a){Ca=a;ta.setAnimationLoop(a);za.start()};this.render=function(a,c,d,e){if(void 0!==d){console.warn("THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead.");
|
|
|
-var f=d}if(void 0!==e){console.warn("THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead.");var g=e}if(void 0!==c&&!0!==c.isCamera)console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");else if(!0!==B){Q=b=null;Le=!1;H=-1;S=null;!0===a.autoUpdate&&a.updateMatrixWorld();null===c.parent&&c.updateMatrixWorld();!0===ta.enabled&&!0===ta.isPresenting&&(c=ta.getCamera(c));if(!0===a.isScene)a.onBeforeRender(O,a,c,f||G);y=va.get(a,c);
|
|
|
-y.init();Jd.multiplyMatrices(c.projectionMatrix,c.matrixWorldInverse);na.setFromProjectionMatrix(Jd);kg=this.localClippingEnabled;Je=Va.init(this.clippingPlanes,kg,c);P=wa.get(a,c);P.init();l(a,c,0,O.sortObjects);P.finish();!0===O.sortObjects&&P.sort(ha,ja);!0===Je&&Va.beginShadows();Ea.render(y.state.shadowsArray,a,c);y.setupLights(c);!0===Je&&Va.endShadows();!0===this.info.autoReset&&this.info.reset();void 0!==f&&this.setRenderTarget(f);pa.render(P,a,c,g);d=P.opaque;e=P.transparent;0<d.length&&
|
|
|
-m(d,a,c);0<e.length&&m(e,a,c);if(!0===a.isScene)a.onAfterRender(O,a,c);null!==G&&(ba.updateRenderTargetMipmap(G),ba.updateMultisampleRenderTarget(G));V.buffers.depth.setTest(!0);V.buffers.depth.setMask(!0);V.buffers.color.setMask(!0);V.setPolygonOffset(!1);y=P=null}};this.setFramebuffer=function(a){D!==a&&null===G&&I.bindFramebuffer(36160,a);D=a};this.getActiveCubeFace=function(){return F};this.getActiveMipmapLevel=function(){return J};this.getRenderTarget=function(){return G};this.setRenderTarget=
|
|
|
-function(a,b,c){G=a;F=b;J=c;a&&void 0===T.get(a).__webglFramebuffer&&ba.setupRenderTarget(a);var d=D,e=!1;a?(d=T.get(a).__webglFramebuffer,a.isWebGLCubeRenderTarget?(d=d[b||0],e=!0):d=a.isWebGLMultisampleRenderTarget?T.get(a).__webglMultisampledFramebuffer:d,aa.copy(a.viewport),U.copy(a.scissor),ca=a.scissorTest):(aa.copy(Z).multiplyScalar(X).floor(),U.copy(da).multiplyScalar(X).floor(),ca=ka);K!==d&&(I.bindFramebuffer(36160,d),K=d);V.viewport(aa);V.scissor(U);V.setScissorTest(ca);e&&(a=T.get(a.texture),
|
|
|
-I.framebufferTexture2D(36160,36064,34069+(b||0),a.__webglTexture,c||0))};this.readRenderTargetPixels=function(a,b,c,d,e,f,g){if(a&&a.isWebGLRenderTarget){var h=T.get(a).__webglFramebuffer;a.isWebGLCubeRenderTarget&&void 0!==g&&(h=h[g]);if(h){g=!1;h!==K&&(I.bindFramebuffer(36160,h),g=!0);try{var l=a.texture,m=l.format,t=l.type;1023!==m&&qa.convert(m)!==I.getParameter(35739)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):1009===
|
|
|
-t||qa.convert(t)===I.getParameter(35738)||1015===t&&(Fa.isWebGL2||ra.get("OES_texture_float")||ra.get("WEBGL_color_buffer_float"))||1016===t&&(Fa.isWebGL2?ra.get("EXT_color_buffer_float"):ra.get("EXT_color_buffer_half_float"))?36053===I.checkFramebufferStatus(36160)?0<=b&&b<=a.width-d&&0<=c&&c<=a.height-e&&I.readPixels(b,c,d,e,qa.convert(m),qa.convert(t),f):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete."):console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.")}finally{g&&
|
|
|
-I.bindFramebuffer(36160,K)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")};this.copyFramebufferToTexture=function(a,b,c){void 0===c&&(c=0);var d=Math.pow(2,-c),e=Math.floor(b.image.width*d);d=Math.floor(b.image.height*d);var f=qa.convert(b.format);ba.setTexture2D(b,0);I.copyTexImage2D(3553,c,f,a.x,a.y,e,d,0);V.unbindTexture()};this.copyTextureToTexture=function(a,b,c,d){void 0===d&&(d=0);var e=b.image.width,f=b.image.height,g=qa.convert(c.format),
|
|
|
-h=qa.convert(c.type);ba.setTexture2D(c,0);b.isDataTexture?I.texSubImage2D(3553,d,a.x,a.y,e,f,g,h,b.image.data):b.isCompressedTexture?I.compressedTexSubImage2D(3553,d,a.x,a.y,b.mipmaps[0].width,b.mipmaps[0].height,g,b.mipmaps[0].data):I.texSubImage2D(3553,d,a.x,a.y,g,h,b.image);0===d&&c.generateMipmaps&&I.generateMipmap(3553);V.unbindTexture()};this.initTexture=function(a){ba.setTexture2D(a,0);V.unbindTexture()};"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",
|
|
|
-{detail:this}))}function Oe(a,b){this.name="";this.color=new D(a);this.density=void 0!==b?b:2.5E-4}function Pe(a,b,c){this.name="";this.color=new D(a);this.near=void 0!==b?b:1;this.far=void 0!==c?c:1E3}function Ia(a,b){this.array=a;this.stride=b;this.count=void 0!==a?a.length/b:0;this.usage=35044;this.updateRange={offset:0,count:-1};this.version=0;this.uuid=L.generateUUID()}function Ib(a,b,c,d){this.name="";this.data=a;this.itemSize=b;this.offset=c;this.normalized=!0===d}function Jb(a){K.call(this);
|
|
|
-this.type="SpriteMaterial";this.color=new D(16777215);this.alphaMap=this.map=null;this.rotation=0;this.transparent=this.sizeAttenuation=!0;this.setValues(a)}function Ld(a){y.call(this);this.type="Sprite";if(void 0===Jc){Jc=new F;var b=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]);b=new Ia(b,5);Jc.setIndex([0,1,2,0,2,3]);Jc.setAttribute("position",new Ib(b,3,0,!1));Jc.setAttribute("uv",new Ib(b,2,3,!1))}this.geometry=Jc;this.material=void 0!==a?a:new Jb;this.center=new w(.5,
|
|
|
-.5)}function Qe(a,b,c,d,e,f){Kc.subVectors(a,c).addScalar(.5).multiply(d);void 0!==e?(Md.x=f*Kc.x-e*Kc.y,Md.y=e*Kc.x+f*Kc.y):Md.copy(Kc);a.copy(b);a.x+=Md.x;a.y+=Md.y;a.applyMatrix4(Xh)}function Nd(){y.call(this);this._currentLevel=0;this.type="LOD";Object.defineProperties(this,{levels:{enumerable:!0,value:[]}});this.autoUpdate=!0}function Re(a,b){a&&a.isGeometry&&console.error("THREE.SkinnedMesh no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");U.call(this,a,b);this.type="SkinnedMesh";
|
|
|
-this.bindMode="attached";this.bindMatrix=new M;this.bindMatrixInverse=new M}function Se(a,b){a=a||[];this.bones=a.slice(0);this.boneMatrices=new Float32Array(16*this.bones.length);this.frame=-1;if(void 0===b)this.calculateInverses();else if(this.bones.length===b.length)this.boneInverses=b.slice(0);else for(console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[],a=0,b=this.bones.length;a<b;a++)this.boneInverses.push(new M)}function ng(){y.call(this);this.type="Bone"}function Te(a,
|
|
|
-b,c){U.call(this,a,b);this.instanceMatrix=new G(new Float32Array(16*c),16);this.count=c;this.frustumCulled=!1}function ja(a){K.call(this);this.type="LineBasicMaterial";this.color=new D(16777215);this.linewidth=1;this.linejoin=this.linecap="round";this.morphTargets=!1;this.setValues(a)}function Ja(a,b,c){1===c&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead.");y.call(this);this.type="Line";this.geometry=void 0!==a?a:new F;this.material=void 0!==
|
|
|
-b?b:new ja;this.updateMorphTargets()}function da(a,b){Ja.call(this,a,b);this.type="LineSegments"}function Ue(a,b){Ja.call(this,a,b);this.type="LineLoop"}function Wa(a){K.call(this);this.type="PointsMaterial";this.color=new D(16777215);this.alphaMap=this.map=null;this.size=1;this.sizeAttenuation=!0;this.morphTargets=!1;this.setValues(a)}function Lc(a,b){y.call(this);this.type="Points";this.geometry=void 0!==a?a:new F;this.material=void 0!==b?b:new Wa;this.updateMorphTargets()}function og(a,b,c,d,e,
|
|
|
-f,g){var h=pg.distanceSqToPoint(a);h<c&&(c=new n,pg.closestPointToPoint(a,c),c.applyMatrix4(d),a=e.ray.origin.distanceTo(c),a<e.near||a>e.far||f.push({distance:a,distanceToRay:Math.sqrt(h),point:c,index:b,face:null,object:g}))}function qg(a,b,c,d,e,f,g,h,l){R.call(this,a,b,c,d,e,f,g,h,l);this.format=void 0!==g?g:1022;this.minFilter=void 0!==f?f:1006;this.magFilter=void 0!==e?e:1006;this.generateMipmaps=!1}function Mc(a,b,c,d,e,f,g,h,l,m,t,p){R.call(this,null,f,g,h,l,m,d,e,t,p);this.image={width:b,
|
|
|
-height:c};this.mipmaps=a;this.generateMipmaps=this.flipY=!1}function Od(a,b,c,d,e,f,g,h,l){R.call(this,a,b,c,d,e,f,g,h,l);this.needsUpdate=!0}function Pd(a,b,c,d,e,f,g,h,l,m){m=void 0!==m?m:1026;if(1026!==m&&1027!==m)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===c&&1026===m&&(c=1012);void 0===c&&1027===m&&(c=1020);R.call(this,null,d,e,f,g,h,m,c,l);this.image={width:a,height:b};this.magFilter=void 0!==g?g:1003;this.minFilter=void 0!==h?h:1003;
|
|
|
-this.generateMipmaps=this.flipY=!1}function Nc(a){F.call(this);this.type="WireframeGeometry";var b=[],c=[0,0],d={},e=["a","b","c"];if(a&&a.isGeometry){for(var f=a.faces,g=0,h=f.length;g<h;g++)for(var l=f[g],m=0;3>m;m++){var t=l[e[m]],p=l[e[(m+1)%3]];c[0]=Math.min(t,p);c[1]=Math.max(t,p);t=c[0]+","+c[1];void 0===d[t]&&(d[t]={index1:c[0],index2:c[1]})}for(var k in d)c=d[k],f=a.vertices[c.index1],b.push(f.x,f.y,f.z),f=a.vertices[c.index2],b.push(f.x,f.y,f.z)}else if(a&&a.isBufferGeometry)if(k=new n,
|
|
|
-null!==a.index){e=a.attributes.position;g=a.index;a=a.groups;0===a.length&&(a=[{start:0,count:g.count,materialIndex:0}]);h=0;for(l=a.length;h<l;++h)for(t=a[h],m=p=t.start,t=p+t.count;m<t;m+=3)for(p=0;3>p;p++){var q=g.getX(m+p),r=g.getX(m+(p+1)%3);c[0]=Math.min(q,r);c[1]=Math.max(q,r);q=c[0]+","+c[1];void 0===d[q]&&(d[q]={index1:c[0],index2:c[1]})}for(f in d)c=d[f],k.fromBufferAttribute(e,c.index1),b.push(k.x,k.y,k.z),k.fromBufferAttribute(e,c.index2),b.push(k.x,k.y,k.z)}else for(d=a.attributes.position,
|
|
|
-c=0,f=d.count/3;c<f;c++)for(a=0;3>a;a++)k.fromBufferAttribute(d,3*c+a),b.push(k.x,k.y,k.z),k.fromBufferAttribute(d,3*c+(a+1)%3),b.push(k.x,k.y,k.z);this.setAttribute("position",new B(b,3))}function Qd(a,b,c){H.call(this);this.type="ParametricGeometry";this.parameters={func:a,slices:b,stacks:c};this.fromBufferGeometry(new Oc(a,b,c));this.mergeVertices()}function Oc(a,b,c){F.call(this);this.type="ParametricBufferGeometry";this.parameters={func:a,slices:b,stacks:c};var d=[],e=[],f=[],g=[],h=new n,l=
|
|
|
-new n,m=new n,t=new n,p=new n;3>a.length&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");for(var k=b+1,q=0;q<=c;q++)for(var r=q/c,u=0;u<=b;u++){var A=u/b;a(A,r,l);e.push(l.x,l.y,l.z);0<=A-1E-5?(a(A-1E-5,r,m),t.subVectors(l,m)):(a(A+1E-5,r,m),t.subVectors(m,l));0<=r-1E-5?(a(A,r-1E-5,m),p.subVectors(l,m)):(a(A,r+1E-5,m),p.subVectors(m,l));h.crossVectors(t,p).normalize();f.push(h.x,h.y,h.z);g.push(A,r)}for(a=0;a<c;a++)for(h=0;h<b;h++)l=a*k+h+1,m=(a+
|
|
|
-1)*k+h+1,t=(a+1)*k+h,d.push(a*k+h,l,t),d.push(l,m,t);this.setIndex(d);this.setAttribute("position",new B(e,3));this.setAttribute("normal",new B(f,3));this.setAttribute("uv",new B(g,2))}function Rd(a,b,c,d){H.call(this);this.type="PolyhedronGeometry";this.parameters={vertices:a,indices:b,radius:c,detail:d};this.fromBufferGeometry(new Ea(a,b,c,d));this.mergeVertices()}function Ea(a,b,c,d){function e(a){h.push(a.x,a.y,a.z)}function f(b,c){b*=3;c.x=a[b+0];c.y=a[b+1];c.z=a[b+2]}function g(a,b,c,d){0>d&&
|
|
|
-1===a.x&&(l[b]=a.x-1);0===c.x&&0===c.z&&(l[b]=d/2/Math.PI+.5)}F.call(this);this.type="PolyhedronBufferGeometry";this.parameters={vertices:a,indices:b,radius:c,detail:d};c=c||1;d=d||0;var h=[],l=[];(function(a){for(var c=new n,d=new n,g=new n,h=0;h<b.length;h+=3){f(b[h+0],c);f(b[h+1],d);f(b[h+2],g);for(var l=c,m=d,k=g,z=Math.pow(2,a),x=[],w=0;w<=z;w++){x[w]=[];for(var y=l.clone().lerp(k,w/z),N=m.clone().lerp(k,w/z),C=z-w,P=0;P<=C;P++)x[w][P]=0===P&&w===z?y:y.clone().lerp(N,P/C)}for(l=0;l<z;l++)for(m=
|
|
|
-0;m<2*(z-l)-1;m++)k=Math.floor(m/2),0===m%2?(e(x[l][k+1]),e(x[l+1][k]),e(x[l][k])):(e(x[l][k+1]),e(x[l+1][k+1]),e(x[l+1][k]))}})(d);(function(a){for(var b=new n,c=0;c<h.length;c+=3)b.x=h[c+0],b.y=h[c+1],b.z=h[c+2],b.normalize().multiplyScalar(a),h[c+0]=b.x,h[c+1]=b.y,h[c+2]=b.z})(c);(function(){for(var a=new n,b=0;b<h.length;b+=3)a.x=h[b+0],a.y=h[b+1],a.z=h[b+2],l.push(Math.atan2(a.z,-a.x)/2/Math.PI+.5,1-(Math.atan2(-a.y,Math.sqrt(a.x*a.x+a.z*a.z))/Math.PI+.5));a=new n;b=new n;for(var c=new n,d=new n,
|
|
|
-e=new w,f=new w,k=new w,A=0,z=0;A<h.length;A+=9,z+=6){a.set(h[A+0],h[A+1],h[A+2]);b.set(h[A+3],h[A+4],h[A+5]);c.set(h[A+6],h[A+7],h[A+8]);e.set(l[z+0],l[z+1]);f.set(l[z+2],l[z+3]);k.set(l[z+4],l[z+5]);d.copy(a).add(b).add(c).divideScalar(3);var x=Math.atan2(d.z,-d.x);g(e,z+0,a,x);g(f,z+2,b,x);g(k,z+4,c,x)}for(a=0;a<l.length;a+=6)b=l[a+0],c=l[a+2],d=l[a+4],e=Math.min(b,c,d),.9<Math.max(b,c,d)&&.1>e&&(.2>b&&(l[a+0]+=1),.2>c&&(l[a+2]+=1),.2>d&&(l[a+4]+=1))})();this.setAttribute("position",new B(h,3));
|
|
|
-this.setAttribute("normal",new B(h.slice(),3));this.setAttribute("uv",new B(l,2));0===d?this.computeVertexNormals():this.normalizeNormals()}function Sd(a,b){H.call(this);this.type="TetrahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new Pc(a,b));this.mergeVertices()}function Pc(a,b){Ea.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],a,b);this.type="TetrahedronBufferGeometry";this.parameters={radius:a,detail:b}}function Td(a,b){H.call(this);this.type=
|
|
|
-"OctahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new ac(a,b));this.mergeVertices()}function ac(a,b){Ea.call(this,[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],a,b);this.type="OctahedronBufferGeometry";this.parameters={radius:a,detail:b}}function Ud(a,b){H.call(this);this.type="IcosahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new Qc(a,b));this.mergeVertices()}function Qc(a,b){var c=(1+Math.sqrt(5))/
|
|
|
-2;Ea.call(this,[-1,c,0,1,c,0,-1,-c,0,1,-c,0,0,-1,c,0,1,c,0,-1,-c,0,1,-c,c,0,-1,c,0,1,-c,0,-1,-c,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],a,b);this.type="IcosahedronBufferGeometry";this.parameters={radius:a,detail:b}}function Vd(a,b){H.call(this);this.type="DodecahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new Rc(a,b));this.mergeVertices()}function Rc(a,b){var c=(1+Math.sqrt(5))/
|
|
|
-2,d=1/c;Ea.call(this,[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-d,-c,0,-d,c,0,d,-c,0,d,c,-d,-c,0,-d,c,0,d,-c,0,d,c,0,-c,0,-d,c,0,-d,-c,0,d,c,0,d],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],a,b);this.type="DodecahedronBufferGeometry";this.parameters={radius:a,
|
|
|
-detail:b}}function Wd(a,b,c,d,e,f){H.call(this);this.type="TubeGeometry";this.parameters={path:a,tubularSegments:b,radius:c,radialSegments:d,closed:e};void 0!==f&&console.warn("THREE.TubeGeometry: taper has been removed.");a=new bc(a,b,c,d,e);this.tangents=a.tangents;this.normals=a.normals;this.binormals=a.binormals;this.fromBufferGeometry(a);this.mergeVertices()}function bc(a,b,c,d,e){function f(e){t=a.getPointAt(e/b,t);var f=g.normals[e];e=g.binormals[e];for(var m=0;m<=d;m++){var p=m/d*Math.PI*
|
|
|
-2,q=Math.sin(p);p=-Math.cos(p);l.x=p*f.x+q*e.x;l.y=p*f.y+q*e.y;l.z=p*f.z+q*e.z;l.normalize();v.push(l.x,l.y,l.z);h.x=t.x+c*l.x;h.y=t.y+c*l.y;h.z=t.z+c*l.z;k.push(h.x,h.y,h.z)}}F.call(this);this.type="TubeBufferGeometry";this.parameters={path:a,tubularSegments:b,radius:c,radialSegments:d,closed:e};b=b||64;c=c||1;d=d||8;e=e||!1;var g=a.computeFrenetFrames(b,e);this.tangents=g.tangents;this.normals=g.normals;this.binormals=g.binormals;var h=new n,l=new n,m=new w,t=new n,k=[],v=[],q=[],r=[];(function(){for(var a=
|
|
|
-0;a<b;a++)f(a);f(!1===e?b:0);for(a=0;a<=b;a++)for(var c=0;c<=d;c++)m.x=a/b,m.y=c/d,q.push(m.x,m.y);for(a=1;a<=b;a++)for(c=1;c<=d;c++){var g=(d+1)*a+(c-1),h=(d+1)*a+c,l=(d+1)*(a-1)+c;r.push((d+1)*(a-1)+(c-1),g,l);r.push(g,h,l)}})();this.setIndex(r);this.setAttribute("position",new B(k,3));this.setAttribute("normal",new B(v,3));this.setAttribute("uv",new B(q,2))}function Xd(a,b,c,d,e,f,g){H.call(this);this.type="TorusKnotGeometry";this.parameters={radius:a,tube:b,tubularSegments:c,radialSegments:d,
|
|
|
-p:e,q:f};void 0!==g&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead.");this.fromBufferGeometry(new Sc(a,b,c,d,e,f));this.mergeVertices()}function Sc(a,b,c,d,e,f){function g(a,b,c,d,e){var f=Math.sin(a);b=c/b*a;c=Math.cos(b);e.x=d*(2+c)*.5*Math.cos(a);e.y=d*(2+c)*f*.5;e.z=d*Math.sin(b)*.5}F.call(this);this.type="TorusKnotBufferGeometry";this.parameters={radius:a,tube:b,tubularSegments:c,radialSegments:d,p:e,q:f};a=a||1;b=b||.4;c=Math.floor(c)||
|
|
|
-64;d=Math.floor(d)||8;e=e||2;f=f||3;for(var h=[],l=[],m=[],t=[],k=new n,v=new n,q=new n,r=new n,u=new n,A=new n,z=new n,x=0;x<=c;++x){var w=x/c*e*Math.PI*2;g(w,e,f,a,q);g(w+.01,e,f,a,r);A.subVectors(r,q);z.addVectors(r,q);u.crossVectors(A,z);z.crossVectors(u,A);u.normalize();z.normalize();for(w=0;w<=d;++w){var y=w/d*Math.PI*2,N=-b*Math.cos(y);y=b*Math.sin(y);k.x=q.x+(N*z.x+y*u.x);k.y=q.y+(N*z.y+y*u.y);k.z=q.z+(N*z.z+y*u.z);l.push(k.x,k.y,k.z);v.subVectors(k,q).normalize();m.push(v.x,v.y,v.z);t.push(x/
|
|
|
-c);t.push(w/d)}}for(a=1;a<=c;a++)for(b=1;b<=d;b++)e=(d+1)*a+(b-1),f=(d+1)*a+b,k=(d+1)*(a-1)+b,h.push((d+1)*(a-1)+(b-1),e,k),h.push(e,f,k);this.setIndex(h);this.setAttribute("position",new B(l,3));this.setAttribute("normal",new B(m,3));this.setAttribute("uv",new B(t,2))}function Yd(a,b,c,d,e){H.call(this);this.type="TorusGeometry";this.parameters={radius:a,tube:b,radialSegments:c,tubularSegments:d,arc:e};this.fromBufferGeometry(new Tc(a,b,c,d,e));this.mergeVertices()}function Tc(a,b,c,d,e){F.call(this);
|
|
|
-this.type="TorusBufferGeometry";this.parameters={radius:a,tube:b,radialSegments:c,tubularSegments:d,arc:e};a=a||1;b=b||.4;c=Math.floor(c)||8;d=Math.floor(d)||6;e=e||2*Math.PI;for(var f=[],g=[],h=[],l=[],m=new n,k=new n,p=new n,v=0;v<=c;v++)for(var q=0;q<=d;q++){var r=q/d*e,u=v/c*Math.PI*2;k.x=(a+b*Math.cos(u))*Math.cos(r);k.y=(a+b*Math.cos(u))*Math.sin(r);k.z=b*Math.sin(u);g.push(k.x,k.y,k.z);m.x=a*Math.cos(r);m.y=a*Math.sin(r);p.subVectors(k,m).normalize();h.push(p.x,p.y,p.z);l.push(q/d);l.push(v/
|
|
|
-c)}for(a=1;a<=c;a++)for(b=1;b<=d;b++)e=(d+1)*(a-1)+b-1,m=(d+1)*(a-1)+b,k=(d+1)*a+b,f.push((d+1)*a+b-1,e,k),f.push(e,m,k);this.setIndex(f);this.setAttribute("position",new B(g,3));this.setAttribute("normal",new B(h,3));this.setAttribute("uv",new B(l,2))}function Yh(a,b,c,d,e){for(var f,g=0,h=b,l=c-d;h<c;h+=d)g+=(a[l]-a[h])*(a[h+1]+a[l+1]),l=h;if(e===0<g)for(e=b;e<c;e+=d)f=Zh(e,a[e],a[e+1],f);else for(e=c-d;e>=b;e-=d)f=Zh(e,a[e],a[e+1],f);f&&Ve(f,f.next)&&(Zd(f),f=f.next);return f}function Kb(a,b){if(!a)return a;
|
|
|
-b||(b=a);do{var c=!1;if(a.steiner||!Ve(a,a.next)&&0!==ka(a.prev,a,a.next))a=a.next;else{Zd(a);a=b=a.prev;if(a===a.next)break;c=!0}}while(c||a!==b);return b}function $d(a,b,c,d,e,f,g){if(a){if(!g&&f){var h=a,l=h;do null===l.z&&(l.z=rg(l.x,l.y,d,e,f)),l.prevZ=l.prev,l=l.nextZ=l.next;while(l!==h);l.prevZ.nextZ=null;l.prevZ=null;h=l;var m,k,p,v,q=1;do{l=h;var r=h=null;for(k=0;l;){k++;var n=l;for(m=p=0;m<q&&(p++,n=n.nextZ,n);m++);for(v=q;0<p||0<v&&n;)0!==p&&(0===v||!n||l.z<=n.z)?(m=l,l=l.nextZ,p--):(m=
|
|
|
-n,n=n.nextZ,v--),r?r.nextZ=m:h=m,m.prevZ=r,r=m;l=n}r.nextZ=null;q*=2}while(1<k)}for(h=a;a.prev!==a.next;){l=a.prev;n=a.next;if(f)r=Bk(a,d,e,f);else a:if(r=a,k=r.prev,p=r,q=r.next,0<=ka(k,p,q))r=!1;else{for(m=r.next.next;m!==r.prev;){if(Uc(k.x,k.y,p.x,p.y,q.x,q.y,m.x,m.y)&&0<=ka(m.prev,m,m.next)){r=!1;break a}m=m.next}r=!0}if(r)b.push(l.i/c),b.push(a.i/c),b.push(n.i/c),Zd(a),h=a=n.next;else if(a=n,a===h){if(!g)$d(Kb(a),b,c,d,e,f,1);else if(1===g){a=Kb(a);g=b;h=c;l=a;do n=l.prev,r=l.next.next,!Ve(n,
|
|
|
-r)&&$h(n,l,l.next,r)&&ae(n,r)&&ae(r,n)&&(g.push(n.i/h),g.push(l.i/h),g.push(r.i/h),Zd(l),Zd(l.next),l=a=r),l=l.next;while(l!==a);a=Kb(l);$d(a,b,c,d,e,f,2)}else if(2===g)a:{g=a;do{for(h=g.next.next;h!==g.prev;){if(l=g.i!==h.i){l=g;n=h;if(r=l.next.i!==n.i&&l.prev.i!==n.i){b:{r=l;do{if(r.i!==l.i&&r.next.i!==l.i&&r.i!==n.i&&r.next.i!==n.i&&$h(r,r.next,l,n)){r=!0;break b}r=r.next}while(r!==l);r=!1}r=!r}if(r){if(r=ae(l,n)&&ae(n,l)){r=l;k=!1;p=(l.x+n.x)/2;q=(l.y+n.y)/2;do r.y>q!==r.next.y>q&&r.next.y!==
|
|
|
-r.y&&p<(r.next.x-r.x)*(q-r.y)/(r.next.y-r.y)+r.x&&(k=!k),r=r.next;while(r!==l);r=k}r=r&&(ka(l.prev,l,n.prev)||ka(l,n.prev,n))||Ve(l,n)&&0<ka(l.prev,l,l.next)&&0<ka(n.prev,n,n.next)}l=r}if(l){a=ai(g,h);g=Kb(g,g.next);a=Kb(a,a.next);$d(g,b,c,d,e,f);$d(a,b,c,d,e,f);break a}h=h.next}g=g.next}while(g!==a)}break}}}}function Bk(a,b,c,d){var e=a.prev,f=a.next;if(0<=ka(e,a,f))return!1;var g=e.x>a.x?e.x>f.x?e.x:f.x:a.x>f.x?a.x:f.x,h=e.y>a.y?e.y>f.y?e.y:f.y:a.y>f.y?a.y:f.y,l=rg(e.x<a.x?e.x<f.x?e.x:f.x:a.x<f.x?
|
|
|
-a.x:f.x,e.y<a.y?e.y<f.y?e.y:f.y:a.y<f.y?a.y:f.y,b,c,d);b=rg(g,h,b,c,d);c=a.prevZ;for(d=a.nextZ;c&&c.z>=l&&d&&d.z<=b;){if(c!==a.prev&&c!==a.next&&Uc(e.x,e.y,a.x,a.y,f.x,f.y,c.x,c.y)&&0<=ka(c.prev,c,c.next))return!1;c=c.prevZ;if(d!==a.prev&&d!==a.next&&Uc(e.x,e.y,a.x,a.y,f.x,f.y,d.x,d.y)&&0<=ka(d.prev,d,d.next))return!1;d=d.nextZ}for(;c&&c.z>=l;){if(c!==a.prev&&c!==a.next&&Uc(e.x,e.y,a.x,a.y,f.x,f.y,c.x,c.y)&&0<=ka(c.prev,c,c.next))return!1;c=c.prevZ}for(;d&&d.z<=b;){if(d!==a.prev&&d!==a.next&&Uc(e.x,
|
|
|
-e.y,a.x,a.y,f.x,f.y,d.x,d.y)&&0<=ka(d.prev,d,d.next))return!1;d=d.nextZ}return!0}function Ck(a,b){return a.x-b.x}function Dk(a,b){var c=b,d=a.x,e=a.y,f=-Infinity;do{if(e<=c.y&&e>=c.next.y&&c.next.y!==c.y){var g=c.x+(e-c.y)*(c.next.x-c.x)/(c.next.y-c.y);if(g<=d&&g>f){f=g;if(g===d){if(e===c.y)return c;if(e===c.next.y)return c.next}var h=c.x<c.next.x?c:c.next}}c=c.next}while(c!==b);if(!h)return null;if(d===f)return h;b=h;g=h.x;var l=h.y,m=Infinity;c=h;do{if(d>=c.x&&c.x>=g&&d!==c.x&&Uc(e<l?d:f,e,g,l,
|
|
|
-e<l?f:d,e,c.x,c.y)){var k=Math.abs(e-c.y)/(d-c.x);var p;if((p=ae(c,a))&&!(p=k<m)&&(p=k===m)&&!(p=c.x>h.x)&&(p=c.x===h.x)){p=h;var v=c;p=0>ka(p.prev,p,v.prev)&&0>ka(v.next,p,p.next)}p&&(h=c,m=k)}c=c.next}while(c!==b);return h}function rg(a,b,c,d,e){a=32767*(a-c)*e;b=32767*(b-d)*e;a=(a|a<<8)&16711935;a=(a|a<<4)&252645135;a=(a|a<<2)&858993459;b=(b|b<<8)&16711935;b=(b|b<<4)&252645135;b=(b|b<<2)&858993459;return(a|a<<1)&1431655765|((b|b<<1)&1431655765)<<1}function Ek(a){var b=a,c=a;do{if(b.x<c.x||b.x===
|
|
|
-c.x&&b.y<c.y)c=b;b=b.next}while(b!==a);return c}function Uc(a,b,c,d,e,f,g,h){return 0<=(e-g)*(b-h)-(a-g)*(f-h)&&0<=(a-g)*(d-h)-(c-g)*(b-h)&&0<=(c-g)*(f-h)-(e-g)*(d-h)}function ka(a,b,c){return(b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y)}function Ve(a,b){return a.x===b.x&&a.y===b.y}function $h(a,b,c,d){var e=We(ka(a,b,c)),f=We(ka(a,b,d)),g=We(ka(c,d,a)),h=We(ka(c,d,b));return e!==f&&g!==h||0===e&&Xe(a,c,b)||0===f&&Xe(a,d,b)||0===g&&Xe(c,a,d)||0===h&&Xe(c,b,d)?!0:!1}function Xe(a,b,c){return b.x<=Math.max(a.x,
|
|
|
-c.x)&&b.x>=Math.min(a.x,c.x)&&b.y<=Math.max(a.y,c.y)&&b.y>=Math.min(a.y,c.y)}function We(a){return 0<a?1:0>a?-1:0}function ae(a,b){return 0>ka(a.prev,a,a.next)?0<=ka(a,b,a.next)&&0<=ka(a,a.prev,b):0>ka(a,b,a.prev)||0>ka(a,a.next,b)}function ai(a,b){var c=new sg(a.i,a.x,a.y),d=new sg(b.i,b.x,b.y),e=a.next,f=b.prev;a.next=b;b.prev=a;c.next=e;e.prev=c;d.next=c;c.prev=d;f.next=d;d.prev=f;return d}function Zh(a,b,c,d){a=new sg(a,b,c);d?(a.next=d.next,a.prev=d,d.next.prev=a,d.next=a):(a.prev=a,a.next=a);
|
|
|
-return a}function Zd(a){a.next.prev=a.prev;a.prev.next=a.next;a.prevZ&&(a.prevZ.nextZ=a.nextZ);a.nextZ&&(a.nextZ.prevZ=a.prevZ)}function sg(a,b,c){this.i=a;this.x=b;this.y=c;this.nextZ=this.prevZ=this.z=this.next=this.prev=null;this.steiner=!1}function bi(a){var b=a.length;2<b&&a[b-1].equals(a[0])&&a.pop()}function ci(a,b){for(var c=0;c<b.length;c++)a.push(b[c].x),a.push(b[c].y)}function cc(a,b){H.call(this);this.type="ExtrudeGeometry";this.parameters={shapes:a,options:b};this.fromBufferGeometry(new gb(a,
|
|
|
-b));this.mergeVertices()}function gb(a,b){function c(a){function c(a,b,c){b||console.error("THREE.ExtrudeGeometry: vec does not exist");return b.clone().multiplyScalar(c).add(a)}function g(a,b,c){var d=a.x-b.x;var e=a.y-b.y;var f=c.x-a.x;var g=c.y-a.y,h=d*d+e*e;if(Math.abs(d*g-e*f)>Number.EPSILON){var l=Math.sqrt(h),m=Math.sqrt(f*f+g*g);h=b.x-e/l;b=b.y+d/l;g=((c.x-g/m-h)*g-(c.y+f/m-b)*f)/(d*g-e*f);f=h+d*g-a.x;d=b+e*g-a.y;e=f*f+d*d;if(2>=e)return new w(f,d);e=Math.sqrt(e/2)}else a=!1,d>Number.EPSILON?
|
|
|
-f>Number.EPSILON&&(a=!0):d<-Number.EPSILON?f<-Number.EPSILON&&(a=!0):Math.sign(e)===Math.sign(g)&&(a=!0),a?(f=-e,e=Math.sqrt(h)):(f=d,d=e,e=Math.sqrt(h/2));return new w(f/e,d/e)}function h(a,b){for(var c=a.length;0<=--c;){var f=c,g=c-1;0>g&&(g=a.length-1);for(var h=0,l=x+2*B;h<l;h++){var m=T*h,k=T*(h+1),t=b+g+m,p=b+g+k;k=b+f+k;r(b+f+m);r(t);r(k);r(t);r(p);r(k);m=e.length/3;m=D.generateSideWallUV(d,e,m-6,m-3,m-2,m-1);u(m[0]);u(m[1]);u(m[3]);u(m[1]);u(m[2]);u(m[3])}}}function l(a,b,c){A.push(a);A.push(b);
|
|
|
-A.push(c)}function k(a,b,c){r(a);r(b);r(c);a=e.length/3;a=D.generateTopUV(d,e,a-3,a-2,a-1);u(a[0]);u(a[1]);u(a[2])}function r(a){e.push(A[3*a]);e.push(A[3*a+1]);e.push(A[3*a+2])}function u(a){f.push(a.x);f.push(a.y)}var A=[],z=void 0!==b.curveSegments?b.curveSegments:12,x=void 0!==b.steps?b.steps:1,y=void 0!==b.depth?b.depth:100,ma=void 0!==b.bevelEnabled?b.bevelEnabled:!0,N=void 0!==b.bevelThickness?b.bevelThickness:6,C=void 0!==b.bevelSize?b.bevelSize:N-2,P=void 0!==b.bevelOffset?b.bevelOffset:
|
|
|
-0,B=void 0!==b.bevelSegments?b.bevelSegments:3,O=b.extrudePath,D=void 0!==b.UVGenerator?b.UVGenerator:Fk;void 0!==b.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),y=b.amount);var E=!1;if(O){var F=O.getSpacedPoints(x);E=!0;ma=!1;var G=O.computeFrenetFrames(x,!1);var J=new n;var K=new n;var H=new n}ma||(P=C=N=B=0);a=a.extractPoints(z);O=a.shape;var M=a.holes;if(!qb.isClockWise(O))for(O=O.reverse(),a=0,z=M.length;a<z;a++){var L=M[a];qb.isClockWise(L)&&(M[a]=L.reverse())}var Q=
|
|
|
-qb.triangulateShape(O,M),S=O;a=0;for(z=M.length;a<z;a++)O=O.concat(M[a]);var T=O.length,aa=Q.length;a=[];z=0;L=S.length;for(var ca=L-1,Y=z+1;z<L;z++,ca++,Y++)ca===L&&(ca=0),Y===L&&(Y=0),a[z]=g(S[z],S[ca],S[Y]);z=[];L=a.concat();Y=0;for(var R=M.length;Y<R;Y++){var X=M[Y];ca=[];for(var U=0,W=X.length,ba=W-1,Z=U+1;U<W;U++,ba++,Z++)ba===W&&(ba=0),Z===W&&(Z=0),ca[U]=g(X[U],X[ba],X[Z]);z.push(ca);L=L.concat(ca)}for(Y=0;Y<B;Y++){ca=Y/B;R=N*Math.cos(ca*Math.PI/2);X=C*Math.sin(ca*Math.PI/2)+P;ca=0;for(U=S.length;ca<
|
|
|
-U;ca++)W=c(S[ca],a[ca],X),l(W.x,W.y,-R);U=0;for(W=M.length;U<W;U++){ba=M[U];ca=z[U];Z=0;for(var ea=ba.length;Z<ea;Z++){var da=c(ba[Z],ca[Z],X);l(da.x,da.y,-R)}}}ca=C+P;for(Y=0;Y<T;Y++)R=ma?c(O[Y],L[Y],ca):O[Y],E?(K.copy(G.normals[0]).multiplyScalar(R.x),J.copy(G.binormals[0]).multiplyScalar(R.y),H.copy(F[0]).add(K).add(J),l(H.x,H.y,H.z)):l(R.x,R.y,0);for(Y=1;Y<=x;Y++)for(R=0;R<T;R++)X=ma?c(O[R],L[R],ca):O[R],E?(K.copy(G.normals[Y]).multiplyScalar(X.x),J.copy(G.binormals[Y]).multiplyScalar(X.y),H.copy(F[Y]).add(K).add(J),
|
|
|
-l(H.x,H.y,H.z)):l(X.x,X.y,y/x*Y);for(G=B-1;0<=G;G--){K=G/B;J=N*Math.cos(K*Math.PI/2);K=C*Math.sin(K*Math.PI/2)+P;H=0;for(O=S.length;H<O;H++)L=c(S[H],a[H],K),l(L.x,L.y,y+J);H=0;for(O=M.length;H<O;H++)for(L=M[H],ca=z[H],Y=0,R=L.length;Y<R;Y++)X=c(L[Y],ca[Y],K),E?l(X.x,X.y+F[x-1].y,F[x-1].x+J):l(X.x,X.y,y+J)}(function(){var a=e.length/3;if(ma){for(var b=0*T,c=0;c<aa;c++){var f=Q[c];k(f[2]+b,f[1]+b,f[0]+b)}b=T*(x+2*B);for(c=0;c<aa;c++)f=Q[c],k(f[0]+b,f[1]+b,f[2]+b)}else{for(b=0;b<aa;b++)c=Q[b],k(c[2],
|
|
|
-c[1],c[0]);for(b=0;b<aa;b++)c=Q[b],k(c[0]+T*x,c[1]+T*x,c[2]+T*x)}d.addGroup(a,e.length/3-a,0)})();(function(){var a=e.length/3,b=0;h(S,b);b+=S.length;for(var c=0,f=M.length;c<f;c++){var g=M[c];h(g,b);b+=g.length}d.addGroup(a,e.length/3-a,1)})()}F.call(this);this.type="ExtrudeBufferGeometry";this.parameters={shapes:a,options:b};a=Array.isArray(a)?a:[a];for(var d=this,e=[],f=[],g=0,h=a.length;g<h;g++)c(a[g]);this.setAttribute("position",new B(e,3));this.setAttribute("uv",new B(f,2));this.computeVertexNormals()}
|
|
|
-function di(a,b,c){c.shapes=[];if(Array.isArray(a))for(var d=0,e=a.length;d<e;d++)c.shapes.push(a[d].uuid);else c.shapes.push(a.uuid);void 0!==b.extrudePath&&(c.options.extrudePath=b.extrudePath.toJSON());return c}function be(a,b){H.call(this);this.type="TextGeometry";this.parameters={text:a,parameters:b};this.fromBufferGeometry(new Vc(a,b));this.mergeVertices()}function Vc(a,b){b=b||{};var c=b.font;if(!c||!c.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),
|
|
|
-new H;a=c.generateShapes(a,b.size);b.depth=void 0!==b.height?b.height:50;void 0===b.bevelThickness&&(b.bevelThickness=10);void 0===b.bevelSize&&(b.bevelSize=8);void 0===b.bevelEnabled&&(b.bevelEnabled=!1);gb.call(this,a,b);this.type="TextBufferGeometry"}function ce(a,b,c,d,e,f,g){H.call(this);this.type="SphereGeometry";this.parameters={radius:a,widthSegments:b,heightSegments:c,phiStart:d,phiLength:e,thetaStart:f,thetaLength:g};this.fromBufferGeometry(new dc(a,b,c,d,e,f,g));this.mergeVertices()}function dc(a,
|
|
|
-b,c,d,e,f,g){F.call(this);this.type="SphereBufferGeometry";this.parameters={radius:a,widthSegments:b,heightSegments:c,phiStart:d,phiLength:e,thetaStart:f,thetaLength:g};a=a||1;b=Math.max(3,Math.floor(b)||8);c=Math.max(2,Math.floor(c)||6);d=void 0!==d?d:0;e=void 0!==e?e:2*Math.PI;f=void 0!==f?f:0;g=void 0!==g?g:Math.PI;for(var h=Math.min(f+g,Math.PI),l=0,m=[],k=new n,p=new n,v=[],q=[],r=[],u=[],A=0;A<=c;A++){var z=[],x=A/c,w=0;0==A&&0==f?w=.5/b:A==c&&h==Math.PI&&(w=-.5/b);for(var y=0;y<=b;y++){var N=
|
|
|
-y/b;k.x=-a*Math.cos(d+N*e)*Math.sin(f+x*g);k.y=a*Math.cos(f+x*g);k.z=a*Math.sin(d+N*e)*Math.sin(f+x*g);q.push(k.x,k.y,k.z);p.copy(k).normalize();r.push(p.x,p.y,p.z);u.push(N+w,1-x);z.push(l++)}m.push(z)}for(a=0;a<c;a++)for(d=0;d<b;d++)e=m[a][d+1],g=m[a][d],l=m[a+1][d],k=m[a+1][d+1],(0!==a||0<f)&&v.push(e,g,k),(a!==c-1||h<Math.PI)&&v.push(g,l,k);this.setIndex(v);this.setAttribute("position",new B(q,3));this.setAttribute("normal",new B(r,3));this.setAttribute("uv",new B(u,2))}function de(a,b,c,d,e,
|
|
|
-f){H.call(this);this.type="RingGeometry";this.parameters={innerRadius:a,outerRadius:b,thetaSegments:c,phiSegments:d,thetaStart:e,thetaLength:f};this.fromBufferGeometry(new Wc(a,b,c,d,e,f));this.mergeVertices()}function Wc(a,b,c,d,e,f){F.call(this);this.type="RingBufferGeometry";this.parameters={innerRadius:a,outerRadius:b,thetaSegments:c,phiSegments:d,thetaStart:e,thetaLength:f};a=a||.5;b=b||1;e=void 0!==e?e:0;f=void 0!==f?f:2*Math.PI;c=void 0!==c?Math.max(3,c):8;d=void 0!==d?Math.max(1,d):1;var g=
|
|
|
-[],h=[],l=[],m=[],k=a;a=(b-a)/d;for(var p=new n,v=new w,q=0;q<=d;q++){for(var r=0;r<=c;r++){var u=e+r/c*f;p.x=k*Math.cos(u);p.y=k*Math.sin(u);h.push(p.x,p.y,p.z);l.push(0,0,1);v.x=(p.x/b+1)/2;v.y=(p.y/b+1)/2;m.push(v.x,v.y)}k+=a}for(b=0;b<d;b++)for(e=b*(c+1),f=0;f<c;f++)k=f+e,a=k+c+1,p=k+c+2,v=k+1,g.push(k,a,v),g.push(a,p,v);this.setIndex(g);this.setAttribute("position",new B(h,3));this.setAttribute("normal",new B(l,3));this.setAttribute("uv",new B(m,2))}function ee(a,b,c,d){H.call(this);this.type=
|
|
|
-"LatheGeometry";this.parameters={points:a,segments:b,phiStart:c,phiLength:d};this.fromBufferGeometry(new Xc(a,b,c,d));this.mergeVertices()}function Xc(a,b,c,d){F.call(this);this.type="LatheBufferGeometry";this.parameters={points:a,segments:b,phiStart:c,phiLength:d};b=Math.floor(b)||12;c=c||0;d=d||2*Math.PI;d=L.clamp(d,0,2*Math.PI);for(var e=[],f=[],g=[],h=1/b,l=new n,m=new w,k=0;k<=b;k++){var p=c+k*h*d,v=Math.sin(p);p=Math.cos(p);for(var q=0;q<=a.length-1;q++)l.x=a[q].x*v,l.y=a[q].y,l.z=a[q].x*p,
|
|
|
-f.push(l.x,l.y,l.z),m.x=k/b,m.y=q/(a.length-1),g.push(m.x,m.y)}for(c=0;c<b;c++)for(h=0;h<a.length-1;h++)l=h+c*a.length,m=l+a.length,k=l+a.length+1,v=l+1,e.push(l,m,v),e.push(m,k,v);this.setIndex(e);this.setAttribute("position",new B(f,3));this.setAttribute("uv",new B(g,2));this.computeVertexNormals();if(d===2*Math.PI)for(d=this.attributes.normal.array,e=new n,f=new n,g=new n,b=b*a.length*3,h=c=0;c<a.length;c++,h+=3)e.x=d[h+0],e.y=d[h+1],e.z=d[h+2],f.x=d[b+h+0],f.y=d[b+h+1],f.z=d[b+h+2],g.addVectors(e,
|
|
|
-f).normalize(),d[h+0]=d[b+h+0]=g.x,d[h+1]=d[b+h+1]=g.y,d[h+2]=d[b+h+2]=g.z}function ec(a,b){H.call(this);this.type="ShapeGeometry";"object"===typeof b&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),b=b.curveSegments);this.parameters={shapes:a,curveSegments:b};this.fromBufferGeometry(new fc(a,b));this.mergeVertices()}function fc(a,b){function c(a){var c=e.length/3,h=a.extractPoints(b);a=h.shape;var m=h.holes;!1===qb.isClockWise(a)&&(a=a.reverse());h=0;for(var k=m.length;h<
|
|
|
-k;h++){var t=m[h];!0===qb.isClockWise(t)&&(m[h]=t.reverse())}h=qb.triangulateShape(a,m);k=0;for(t=m.length;k<t;k++)a=a.concat(m[k]);m=0;for(k=a.length;m<k;m++)t=a[m],e.push(t.x,t.y,0),f.push(0,0,1),g.push(t.x,t.y);a=0;for(m=h.length;a<m;a++)k=h[a],d.push(k[0]+c,k[1]+c,k[2]+c),l+=3}F.call(this);this.type="ShapeBufferGeometry";this.parameters={shapes:a,curveSegments:b};b=b||12;var d=[],e=[],f=[],g=[],h=0,l=0;if(!1===Array.isArray(a))c(a);else for(var m=0;m<a.length;m++)c(a[m]),this.addGroup(h,l,m),
|
|
|
-h+=l,l=0;this.setIndex(d);this.setAttribute("position",new B(e,3));this.setAttribute("normal",new B(f,3));this.setAttribute("uv",new B(g,2))}function ei(a,b){b.shapes=[];if(Array.isArray(a))for(var c=0,d=a.length;c<d;c++)b.shapes.push(a[c].uuid);else b.shapes.push(a.uuid);return b}function Yc(a,b){F.call(this);this.type="EdgesGeometry";this.parameters={thresholdAngle:b};var c=[];b=Math.cos(L.DEG2RAD*(void 0!==b?b:1));var d=[0,0],e={},f=["a","b","c"];if(a.isBufferGeometry){var g=new H;g.fromBufferGeometry(a)}else g=
|
|
|
-a.clone();g.mergeVertices();g.computeFaceNormals();a=g.vertices;g=g.faces;for(var h=0,l=g.length;h<l;h++)for(var m=g[h],k=0;3>k;k++){var p=m[f[k]];var n=m[f[(k+1)%3]];d[0]=Math.min(p,n);d[1]=Math.max(p,n);p=d[0]+","+d[1];void 0===e[p]?e[p]={index1:d[0],index2:d[1],face1:h,face2:void 0}:e[p].face2=h}for(p in e)if(d=e[p],void 0===d.face2||g[d.face1].normal.dot(g[d.face2].normal)<=b)f=a[d.index1],c.push(f.x,f.y,f.z),f=a[d.index2],c.push(f.x,f.y,f.z);this.setAttribute("position",new B(c,3))}function gc(a,
|
|
|
-b,c,d,e,f,g,h){H.call(this);this.type="CylinderGeometry";this.parameters={radiusTop:a,radiusBottom:b,height:c,radialSegments:d,heightSegments:e,openEnded:f,thetaStart:g,thetaLength:h};this.fromBufferGeometry(new rb(a,b,c,d,e,f,g,h));this.mergeVertices()}function rb(a,b,c,d,e,f,g,h){function l(c){var e,f=new w,l=new n,t=0,u=!0===c?a:b,x=!0===c?1:-1;var y=r;for(e=1;e<=d;e++)p.push(0,A*x,0),v.push(0,x,0),q.push(.5,.5),r++;e=r;for(var B=0;B<=d;B++){var E=B/d*h+g,D=Math.cos(E);E=Math.sin(E);l.x=u*E;l.y=
|
|
|
-A*x;l.z=u*D;p.push(l.x,l.y,l.z);v.push(0,x,0);f.x=.5*D+.5;f.y=.5*E*x+.5;q.push(f.x,f.y);r++}for(f=0;f<d;f++)l=y+f,u=e+f,!0===c?k.push(u,u+1,l):k.push(u+1,u,l),t+=3;m.addGroup(z,t,!0===c?1:2);z+=t}F.call(this);this.type="CylinderBufferGeometry";this.parameters={radiusTop:a,radiusBottom:b,height:c,radialSegments:d,heightSegments:e,openEnded:f,thetaStart:g,thetaLength:h};var m=this;a=void 0!==a?a:1;b=void 0!==b?b:1;c=c||1;d=Math.floor(d)||8;e=Math.floor(e)||1;f=void 0!==f?f:!1;g=void 0!==g?g:0;h=void 0!==
|
|
|
-h?h:2*Math.PI;var k=[],p=[],v=[],q=[],r=0,u=[],A=c/2,z=0;(function(){for(var f=new n,l=new n,t=0,w=(b-a)/c,C=0;C<=e;C++){for(var y=[],B=C/e,E=B*(b-a)+a,D=0;D<=d;D++){var F=D/d,G=F*h+g,H=Math.sin(G);G=Math.cos(G);l.x=E*H;l.y=-B*c+A;l.z=E*G;p.push(l.x,l.y,l.z);f.set(H,w,G).normalize();v.push(f.x,f.y,f.z);q.push(F,1-B);y.push(r++)}u.push(y)}for(f=0;f<d;f++)for(l=0;l<e;l++)w=u[l+1][f],C=u[l+1][f+1],y=u[l][f+1],k.push(u[l][f],w,y),k.push(w,C,y),t+=6;m.addGroup(z,t,0);z+=t})();!1===f&&(0<a&&l(!0),0<b&&
|
|
|
-l(!1));this.setIndex(k);this.setAttribute("position",new B(p,3));this.setAttribute("normal",new B(v,3));this.setAttribute("uv",new B(q,2))}function fe(a,b,c,d,e,f,g){gc.call(this,0,a,b,c,d,e,f,g);this.type="ConeGeometry";this.parameters={radius:a,height:b,radialSegments:c,heightSegments:d,openEnded:e,thetaStart:f,thetaLength:g}}function ge(a,b,c,d,e,f,g){rb.call(this,0,a,b,c,d,e,f,g);this.type="ConeBufferGeometry";this.parameters={radius:a,height:b,radialSegments:c,heightSegments:d,openEnded:e,thetaStart:f,
|
|
|
-thetaLength:g}}function he(a,b,c,d){H.call(this);this.type="CircleGeometry";this.parameters={radius:a,segments:b,thetaStart:c,thetaLength:d};this.fromBufferGeometry(new Zc(a,b,c,d));this.mergeVertices()}function Zc(a,b,c,d){F.call(this);this.type="CircleBufferGeometry";this.parameters={radius:a,segments:b,thetaStart:c,thetaLength:d};a=a||1;b=void 0!==b?Math.max(3,b):8;c=void 0!==c?c:0;d=void 0!==d?d:2*Math.PI;var e=[],f=[],g=[],h=[],l=new n,m=new w;f.push(0,0,0);g.push(0,0,1);h.push(.5,.5);for(var k=
|
|
|
-0,p=3;k<=b;k++,p+=3){var v=c+k/b*d;l.x=a*Math.cos(v);l.y=a*Math.sin(v);f.push(l.x,l.y,l.z);g.push(0,0,1);m.x=(f[p]/a+1)/2;m.y=(f[p+1]/a+1)/2;h.push(m.x,m.y)}for(a=1;a<=b;a++)e.push(a,a+1,0);this.setIndex(e);this.setAttribute("position",new B(f,3));this.setAttribute("normal",new B(g,3));this.setAttribute("uv",new B(h,2))}function hc(a){K.call(this);this.type="ShadowMaterial";this.color=new D(0);this.transparent=!0;this.setValues(a)}function sb(a){Aa.call(this,a);this.type="RawShaderMaterial"}function hb(a){K.call(this);
|
|
|
-this.defines={STANDARD:""};this.type="MeshStandardMaterial";this.color=new D(16777215);this.roughness=1;this.metalness=0;this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.envMap=this.alphaMap=this.metalnessMap=this.roughnessMap=
|
|
|
-null;this.envMapIntensity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.vertexTangents=this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function ic(a){hb.call(this);this.defines={STANDARD:"",PHYSICAL:""};this.type="MeshPhysicalMaterial";this.clearcoat=0;this.clearcoatMap=null;this.clearcoatRoughness=0;this.clearcoatRoughnessMap=null;this.clearcoatNormalScale=new w(1,1);this.clearcoatNormalMap=
|
|
|
-null;this.reflectivity=.5;this.sheen=null;this.transparency=0;this.setValues(a)}function Lb(a){K.call(this);this.type="MeshPhongMaterial";this.color=new D(16777215);this.specular=new D(1118481);this.shininess=30;this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=
|
|
|
-1;this.displacementBias=0;this.envMap=this.alphaMap=this.specularMap=null;this.combine=0;this.reflectivity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function jc(a){K.call(this);this.defines={TOON:""};this.type="MeshToonMaterial";this.color=new D(16777215);this.specular=new D(1118481);this.shininess=30;this.lightMap=this.gradientMap=this.map=null;
|
|
|
-this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.alphaMap=this.specularMap=null;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}
|
|
|
-function kc(a){K.call(this);this.type="MeshNormalMaterial";this.bumpMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.wireframe=!1;this.wireframeLinewidth=1;this.morphNormals=this.morphTargets=this.skinning=this.fog=!1;this.setValues(a)}function lc(a){K.call(this);this.type="MeshLambertMaterial";this.color=new D(16777215);this.lightMap=this.map=null;this.lightMapIntensity=1;
|
|
|
-this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.envMap=this.alphaMap=this.specularMap=this.emissiveMap=null;this.combine=0;this.reflectivity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function mc(a){K.call(this);this.defines={MATCAP:""};this.type="MeshMatcapMaterial";this.color=new D(16777215);this.bumpMap=
|
|
|
-this.map=this.matcap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.alphaMap=null;this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function nc(a){ja.call(this);this.type="LineDashedMaterial";this.scale=1;this.dashSize=3;this.gapSize=1;this.setValues(a)}function Ka(a,b,c,d){this.parameterPositions=a;this._cachedIndex=0;this.resultBuffer=void 0!==d?d:new b.constructor(c);
|
|
|
-this.sampleValues=b;this.valueSize=c}function Ye(a,b,c,d){Ka.call(this,a,b,c,d);this._offsetNext=this._weightNext=this._offsetPrev=this._weightPrev=-0}function ie(a,b,c,d){Ka.call(this,a,b,c,d)}function Ze(a,b,c,d){Ka.call(this,a,b,c,d)}function sa(a,b,c,d){if(void 0===a)throw Error("THREE.KeyframeTrack: track name is undefined");if(void 0===b||0===b.length)throw Error("THREE.KeyframeTrack: no keyframes in track named "+a);this.name=a;this.times=Z.convertArray(b,this.TimeBufferType);this.values=Z.convertArray(c,
|
|
|
-this.ValueBufferType);this.setInterpolation(d||this.DefaultInterpolation)}function $e(a,b,c){sa.call(this,a,b,c)}function af(a,b,c,d){sa.call(this,a,b,c,d)}function $c(a,b,c,d){sa.call(this,a,b,c,d)}function bf(a,b,c,d){Ka.call(this,a,b,c,d)}function je(a,b,c,d){sa.call(this,a,b,c,d)}function cf(a,b,c,d){sa.call(this,a,b,c,d)}function ad(a,b,c,d){sa.call(this,a,b,c,d)}function Qa(a,b,c,d){this.name=a;this.tracks=c;this.duration=void 0!==b?b:-1;this.blendMode=void 0!==d?d:2500;this.uuid=L.generateUUID();
|
|
|
-0>this.duration&&this.resetDuration()}function Gk(a){switch(a.toLowerCase()){case "scalar":case "double":case "float":case "number":case "integer":return $c;case "vector":case "vector2":case "vector3":case "vector4":return ad;case "color":return af;case "quaternion":return je;case "bool":case "boolean":return $e;case "string":return cf}throw Error("THREE.KeyframeTrack: Unsupported typeName: "+a);}function Hk(a){if(void 0===a.type)throw Error("THREE.KeyframeTrack: track type undefined, can not parse");
|
|
|
-var b=Gk(a.type);if(void 0===a.times){var c=[],d=[];Z.flattenJSON(a.keys,c,d,"value");a.times=c;a.values=d}return void 0!==b.parse?b.parse(a):new b(a.name,a.times,a.values,a.interpolation)}function tg(a,b,c){var d=this,e=!1,f=0,g=0,h=void 0,l=[];this.onStart=void 0;this.onLoad=a;this.onProgress=b;this.onError=c;this.itemStart=function(a){g++;if(!1===e&&void 0!==d.onStart)d.onStart(a,f,g);e=!0};this.itemEnd=function(a){f++;if(void 0!==d.onProgress)d.onProgress(a,f,g);if(f===g&&(e=!1,void 0!==d.onLoad))d.onLoad()};
|
|
|
-this.itemError=function(a){if(void 0!==d.onError)d.onError(a)};this.resolveURL=function(a){return h?h(a):a};this.setURLModifier=function(a){h=a;return this};this.addHandler=function(a,b){l.push(a,b);return this};this.removeHandler=function(a){a=l.indexOf(a);-1!==a&&l.splice(a,2);return this};this.getHandler=function(a){for(var b=0,c=l.length;b<c;b+=2){var d=l[b],e=l[b+1];d.global&&(d.lastIndex=0);if(d.test(a))return e}return null}}function S(a){this.manager=void 0!==a?a:fi;this.crossOrigin="anonymous";
|
|
|
-this.resourcePath=this.path="";this.requestHeader={}}function Ra(a){S.call(this,a)}function ug(a){S.call(this,a)}function vg(a){S.call(this,a)}function df(a){S.call(this,a)}function bd(a){S.call(this,a)}function ef(a){S.call(this,a)}function ff(a){S.call(this,a)}function J(){this.type="Curve";this.arcLengthDivisions=200}function La(a,b,c,d,e,f,g,h){J.call(this);this.type="EllipseCurve";this.aX=a||0;this.aY=b||0;this.xRadius=c||1;this.yRadius=d||1;this.aStartAngle=e||0;this.aEndAngle=f||2*Math.PI;
|
|
|
-this.aClockwise=g||!1;this.aRotation=h||0}function cd(a,b,c,d,e,f){La.call(this,a,b,c,c,d,e,f);this.type="ArcCurve"}function wg(){var a=0,b=0,c=0,d=0;return{initCatmullRom:function(e,f,g,h,l){e=l*(g-e);h=l*(h-f);a=f;b=e;c=-3*f+3*g-2*e-h;d=2*f-2*g+e+h},initNonuniformCatmullRom:function(e,f,g,h,l,m,k){e=((f-e)/l-(g-e)/(l+m)+(g-f)/m)*m;h=((g-f)/m-(h-f)/(m+k)+(h-g)/k)*m;a=f;b=e;c=-3*f+3*g-2*e-h;d=2*f-2*g+e+h},calc:function(e){var f=e*e;return a+b*e+c*f+d*f*e}}}function pa(a,b,c,d){J.call(this);this.type=
|
|
|
-"CatmullRomCurve3";this.points=a||[];this.closed=b||!1;this.curveType=c||"centripetal";this.tension=d||.5}function gi(a,b,c,d,e){b=.5*(d-b);e=.5*(e-c);var f=a*a;return(2*c-2*d+b+e)*a*f+(-3*c+3*d-2*b-e)*f+b*a+c}function ke(a,b,c,d){var e=1-a;return e*e*b+2*(1-a)*a*c+a*a*d}function le(a,b,c,d,e){var f=1-a,g=1-a;return f*f*f*b+3*g*g*a*c+3*(1-a)*a*a*d+a*a*a*e}function Xa(a,b,c,d){J.call(this);this.type="CubicBezierCurve";this.v0=a||new w;this.v1=b||new w;this.v2=c||new w;this.v3=d||new w}function ib(a,
|
|
|
-b,c,d){J.call(this);this.type="CubicBezierCurve3";this.v0=a||new n;this.v1=b||new n;this.v2=c||new n;this.v3=d||new n}function Ca(a,b){J.call(this);this.type="LineCurve";this.v1=a||new w;this.v2=b||new w}function Ya(a,b){J.call(this);this.type="LineCurve3";this.v1=a||new n;this.v2=b||new n}function Za(a,b,c){J.call(this);this.type="QuadraticBezierCurve";this.v0=a||new w;this.v1=b||new w;this.v2=c||new w}function jb(a,b,c){J.call(this);this.type="QuadraticBezierCurve3";this.v0=a||new n;this.v1=b||
|
|
|
-new n;this.v2=c||new n}function $a(a){J.call(this);this.type="SplineCurve";this.points=a||[]}function tb(){J.call(this);this.type="CurvePath";this.curves=[];this.autoClose=!1}function ab(a){tb.call(this);this.type="Path";this.currentPoint=new w;a&&this.setFromPoints(a)}function Mb(a){ab.call(this,a);this.uuid=L.generateUUID();this.type="Shape";this.holes=[]}function ha(a,b){y.call(this);this.type="Light";this.color=new D(a);this.intensity=void 0!==b?b:1;this.receiveShadow=void 0}function gf(a,b,c){ha.call(this,
|
|
|
-a,c);this.type="HemisphereLight";this.castShadow=void 0;this.position.copy(y.DefaultUp);this.updateMatrix();this.groundColor=new D(b)}function kb(a){this.camera=a;this.bias=0;this.radius=1;this.mapSize=new w(512,512);this.mapPass=this.map=null;this.matrix=new M;this._frustum=new Ec;this._frameExtents=new w(1,1);this._viewportCount=1;this._viewports=[new ea(0,0,1,1)]}function hf(){kb.call(this,new T(50,1,.5,500))}function jf(a,b,c,d,e,f){ha.call(this,a,b);this.type="SpotLight";this.position.copy(y.DefaultUp);
|
|
|
-this.updateMatrix();this.target=new y;Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(a){this.intensity=a/Math.PI}});this.distance=void 0!==c?c:0;this.angle=void 0!==d?d:Math.PI/3;this.penumbra=void 0!==e?e:0;this.decay=void 0!==f?f:1;this.shadow=new hf}function xg(){kb.call(this,new T(90,1,.5,500));this._frameExtents=new w(4,2);this._viewportCount=6;this._viewports=[new ea(2,1,1,1),new ea(0,1,1,1),new ea(3,1,1,1),new ea(1,1,1,1),new ea(3,0,1,1),new ea(1,
|
|
|
-0,1,1)];this._cubeDirections=[new n(1,0,0),new n(-1,0,0),new n(0,0,1),new n(0,0,-1),new n(0,1,0),new n(0,-1,0)];this._cubeUps=[new n(0,1,0),new n(0,1,0),new n(0,1,0),new n(0,1,0),new n(0,0,1),new n(0,0,-1)]}function kf(a,b,c,d){ha.call(this,a,b);this.type="PointLight";Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(a){this.intensity=a/(4*Math.PI)}});this.distance=void 0!==c?c:0;this.decay=void 0!==d?d:1;this.shadow=new xg}function dd(a,b,c,d,e,f){eb.call(this);
|
|
|
-this.type="OrthographicCamera";this.zoom=1;this.view=null;this.left=void 0!==a?a:-1;this.right=void 0!==b?b:1;this.top=void 0!==c?c:1;this.bottom=void 0!==d?d:-1;this.near=void 0!==e?e:.1;this.far=void 0!==f?f:2E3;this.updateProjectionMatrix()}function lf(){kb.call(this,new dd(-5,5,5,-5,.5,500))}function mf(a,b){ha.call(this,a,b);this.type="DirectionalLight";this.position.copy(y.DefaultUp);this.updateMatrix();this.target=new y;this.shadow=new lf}function nf(a,b){ha.call(this,a,b);this.type="AmbientLight";
|
|
|
-this.castShadow=void 0}function of(a,b,c,d){ha.call(this,a,b);this.type="RectAreaLight";this.width=void 0!==c?c:10;this.height=void 0!==d?d:10}function pf(){this.coefficients=[];for(var a=0;9>a;a++)this.coefficients.push(new n)}function Sa(a,b){ha.call(this,void 0,b);this.type="LightProbe";this.sh=void 0!==a?a:new pf}function qf(a){S.call(this,a);this.textures={}}function me(){F.call(this);this.type="InstancedBufferGeometry";this.instanceCount=Infinity}function rf(a,b,c,d){"number"===typeof c&&(d=
|
|
|
-c,c=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument."));G.call(this,a,b,c);this.meshPerAttribute=d||1}function sf(a){S.call(this,a)}function tf(a){S.call(this,a)}function yg(a){"undefined"===typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported.");"undefined"===typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported.");S.call(this,a);this.options=void 0}function zg(){this.type=
|
|
|
-"ShapePath";this.color=new D;this.subPaths=[];this.currentPath=null}function Ag(a){this.type="Font";this.data=a}function Bg(a){S.call(this,a)}function uf(a){S.call(this,a)}function Cg(a,b,c){Sa.call(this,void 0,c);a=(new D).set(a);c=(new D).set(b);b=new n(a.r,a.g,a.b);a=new n(c.r,c.g,c.b);c=Math.sqrt(Math.PI);var d=c*Math.sqrt(.75);this.sh.coefficients[0].copy(b).add(a).multiplyScalar(c);this.sh.coefficients[1].copy(b).sub(a).multiplyScalar(d)}function Dg(a,b){Sa.call(this,void 0,b);a=(new D).set(a);
|
|
|
-this.sh.coefficients[0].set(a.r,a.g,a.b).multiplyScalar(2*Math.sqrt(Math.PI))}function hi(){this.type="StereoCamera";this.aspect=1;this.eyeSep=.064;this.cameraL=new T;this.cameraL.layers.enable(1);this.cameraL.matrixAutoUpdate=!1;this.cameraR=new T;this.cameraR.layers.enable(2);this.cameraR.matrixAutoUpdate=!1;this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}function Eg(a){this.autoStart=void 0!==a?a:!0;this.elapsedTime=this.oldTime=this.startTime=0;this.running=
|
|
|
-!1}function Fg(){y.call(this);this.type="AudioListener";this.context=Gg.getContext();this.gain=this.context.createGain();this.gain.connect(this.context.destination);this.filter=null;this.timeDelta=0;this._clock=new Eg}function ed(a){y.call(this);this.type="Audio";this.listener=a;this.context=a.context;this.gain=this.context.createGain();this.gain.connect(a.getInput());this.autoplay=!1;this.buffer=null;this.detune=0;this.loop=!1;this.offset=this.loopEnd=this.loopStart=0;this.duration=void 0;this.playbackRate=
|
|
|
-1;this.isPlaying=!1;this.hasPlaybackControl=!0;this.sourceType="empty";this._progress=this._startedAt=0;this.filters=[]}function Hg(a){ed.call(this,a);this.panner=this.context.createPanner();this.panner.panningModel="HRTF";this.panner.connect(this.gain)}function Ig(a,b){this.analyser=a.context.createAnalyser();this.analyser.fftSize=void 0!==b?b:2048;this.data=new Uint8Array(this.analyser.frequencyBinCount);a.getOutput().connect(this.analyser)}function Jg(a,b,c){this.binding=a;this.valueSize=c;switch(b){case "quaternion":a=
|
|
|
-this._slerp;b=this._slerpAdditive;var d=this._setAdditiveIdentityQuaternion;this.buffer=new Float64Array(6*c);this._workIndex=5;break;case "string":case "bool":b=a=this._select;d=this._setAdditiveIdentityOther;this.buffer=Array(5*c);break;default:a=this._lerp,b=this._lerpAdditive,d=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*c)}this._mixBufferRegion=a;this._mixBufferRegionAdditive=b;this._setIdentity=d;this._origIndex=3;this._addIndex=4;this.referenceCount=this.useCount=this.cumulativeWeightAdditive=
|
|
|
-this.cumulativeWeight=0}function ii(a,b,c){c=c||ya.parseTrackName(b);this._targetGroup=a;this._bindings=a.subscribe_(b,c)}function ya(a,b,c){this.path=b;this.parsedPath=c||ya.parseTrackName(b);this.node=ya.findNode(a,this.parsedPath.nodeName)||a;this.rootNode=a}function ji(){this.uuid=L.generateUUID();this._objects=Array.prototype.slice.call(arguments);this.nCachedObjects_=0;var a={};this._indicesByUUID=a;for(var b=0,c=arguments.length;b!==c;++b)a[arguments[b].uuid]=b;this._paths=[];this._parsedPaths=
|
|
|
-[];this._bindings=[];this._bindingsIndicesByPath={};var d=this;this.stats={objects:{get total(){return d._objects.length},get inUse(){return this.total-d.nCachedObjects_}},get bindingsPerObject(){return d._bindings.length}}}function ki(a,b,c,d){this._mixer=a;this._clip=b;this._localRoot=c||null;this.blendMode=d||b.blendMode;a=b.tracks;b=a.length;c=Array(b);d={endingStart:2400,endingEnd:2400};for(var e=0;e!==b;++e){var f=a[e].createInterpolant(null);c[e]=f;f.settings=d}this._interpolantSettings=d;
|
|
|
-this._interpolants=c;this._propertyBindings=Array(b);this._weightInterpolant=this._timeScaleInterpolant=this._byClipCacheIndex=this._cacheIndex=null;this.loop=2201;this._loopCount=-1;this._startTime=null;this.time=0;this._effectiveWeight=this.weight=this._effectiveTimeScale=this.timeScale=1;this.repetitions=Infinity;this.paused=!1;this.enabled=!0;this.clampWhenFinished=!1;this.zeroSlopeAtEnd=this.zeroSlopeAtStart=!0}function Kg(a){this._root=a;this._initMemoryManager();this.time=this._accuIndex=0;
|
|
|
-this.timeScale=1}function vf(a,b){"string"===typeof a&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),a=b);this.value=a}function Lg(a,b,c){Ia.call(this,a,b);this.meshPerAttribute=c||1}function Mg(a,b,c,d){this.ray=new Vb(a,b);this.near=c||0;this.far=d||Infinity;this.camera=null;this.layers=new De;this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}};Object.defineProperties(this.params,{PointCloud:{get:function(){console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points.");
|
|
|
-return this.Points}}})}function li(a,b){return a.distance-b.distance}function Ng(a,b,c,d){a.layers.test(b.layers)&&a.raycast(b,c);if(!0===d){a=a.children;d=0;for(var e=a.length;d<e;d++)Ng(a[d],b,c,!0)}}function mi(a,b,c){this.radius=void 0!==a?a:1;this.phi=void 0!==b?b:0;this.theta=void 0!==c?c:0;return this}function ni(a,b,c){this.radius=void 0!==a?a:1;this.theta=void 0!==b?b:0;this.y=void 0!==c?c:0;return this}function Og(a,b){this.min=void 0!==a?a:new w(Infinity,Infinity);this.max=void 0!==b?b:
|
|
|
-new w(-Infinity,-Infinity)}function Pg(a,b){this.start=void 0!==a?a:new n;this.end=void 0!==b?b:new n}function ne(a){y.call(this);this.material=a;this.render=function(){};this.hasUvs=this.hasColors=this.hasNormals=this.hasPositions=!1;this.uvArray=this.colorArray=this.normalArray=this.positionArray=null;this.count=0}function fd(a,b){y.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.color=b;a=new F;b=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,
|
|
|
-1,0,0,0,0,1,1,0,0,0,0,-1,1];for(var c=0,d=1;32>c;c++,d++){var e=c/32*Math.PI*2,f=d/32*Math.PI*2;b.push(Math.cos(e),Math.sin(e),1,Math.cos(f),Math.sin(f),1)}a.setAttribute("position",new B(b,3));b=new ja({fog:!1,toneMapped:!1});this.cone=new da(a,b);this.add(this.cone);this.update()}function oi(a){var b=[];a&&a.isBone&&b.push(a);for(var c=0;c<a.children.length;c++)b.push.apply(b,oi(a.children[c]));return b}function oc(a){for(var b=oi(a),c=new F,d=[],e=[],f=new D(0,0,1),g=new D(0,1,0),h=0;h<b.length;h++){var l=
|
|
|
-b[h];l.parent&&l.parent.isBone&&(d.push(0,0,0),d.push(0,0,0),e.push(f.r,f.g,f.b),e.push(g.r,g.g,g.b))}c.setAttribute("position",new B(d,3));c.setAttribute("color",new B(e,3));d=new ja({vertexColors:!0,depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0});da.call(this,c,d);this.type="SkeletonHelper";this.root=a;this.bones=b;this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1}function gd(a,b,c){this.light=a;this.light.updateMatrixWorld();this.color=c;a=new dc(b,4,2);b=new Na({wireframe:!0,fog:!1,
|
|
|
-toneMapped:!1});U.call(this,a,b);this.type="PointLightHelper";this.matrix=this.light.matrixWorld;this.matrixAutoUpdate=!1;this.update()}function hd(a,b,c){y.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.color=c;a=new ac(b);a.rotateY(.5*Math.PI);this.material=new Na({wireframe:!0,fog:!1,toneMapped:!1});void 0===this.color&&(this.material.vertexColors=!0);b=a.getAttribute("position");b=new Float32Array(3*b.count);a.setAttribute("color",
|
|
|
-new G(b,3));this.add(new U(a,this.material));this.update()}function wf(a,b,c,d){a=a||10;b=b||10;c=new D(void 0!==c?c:4473924);d=new D(void 0!==d?d:8947848);var e=b/2,f=a/b,g=a/2;a=[];for(var h=[],l=0,m=0,k=-g;l<=b;l++,k+=f){a.push(-g,0,k,g,0,k);a.push(k,0,-g,k,0,g);var p=l===e?c:d;p.toArray(h,m);m+=3;p.toArray(h,m);m+=3;p.toArray(h,m);m+=3;p.toArray(h,m);m+=3}b=new F;b.setAttribute("position",new B(a,3));b.setAttribute("color",new B(h,3));c=new ja({vertexColors:!0,toneMapped:!1});da.call(this,b,c);
|
|
|
-this.type="GridHelper"}function xf(a,b,c,d,e,f){a=a||10;b=b||16;c=c||8;d=d||64;e=new D(void 0!==e?e:4473924);f=new D(void 0!==f?f:8947848);for(var g=[],h=[],l=0;l<=b;l++){var m=l/b*2*Math.PI,k=Math.sin(m)*a;m=Math.cos(m)*a;g.push(0,0,0);g.push(k,0,m);k=l&1?e:f;h.push(k.r,k.g,k.b);h.push(k.r,k.g,k.b)}for(b=0;b<=c;b++)for(l=b&1?e:f,k=a-a/c*b,m=0;m<d;m++){var p=m/d*2*Math.PI,n=Math.sin(p)*k;p=Math.cos(p)*k;g.push(n,0,p);h.push(l.r,l.g,l.b);p=(m+1)/d*2*Math.PI;n=Math.sin(p)*k;p=Math.cos(p)*k;g.push(n,
|
|
|
-0,p);h.push(l.r,l.g,l.b)}a=new F;a.setAttribute("position",new B(g,3));a.setAttribute("color",new B(h,3));g=new ja({vertexColors:!0,toneMapped:!1});da.call(this,a,g);this.type="PolarGridHelper"}function id(a,b,c){y.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.color=c;void 0===b&&(b=1);a=new F;a.setAttribute("position",new B([-b,b,0,b,b,0,b,-b,0,-b,-b,0,-b,b,0],3));b=new ja({fog:!1,toneMapped:!1});this.lightPlane=new Ja(a,b);this.add(this.lightPlane);
|
|
|
-a=new F;a.setAttribute("position",new B([0,0,0,0,0,1],3));this.targetLine=new Ja(a,b);this.add(this.targetLine);this.update()}function oe(a){function b(a,b,d){c(a,d);c(b,d)}function c(a,b){f.push(0,0,0);g.push(b.r,b.g,b.b);void 0===h[a]&&(h[a]=[]);h[a].push(f.length/3-1)}var d=new F,e=new ja({color:16777215,vertexColors:!0,toneMapped:!1}),f=[],g=[],h={},l=new D(16755200),m=new D(16711680),k=new D(43775),p=new D(16777215),n=new D(3355443);b("n1","n2",l);b("n2","n4",l);b("n4","n3",l);b("n3","n1",l);
|
|
|
-b("f1","f2",l);b("f2","f4",l);b("f4","f3",l);b("f3","f1",l);b("n1","f1",l);b("n2","f2",l);b("n3","f3",l);b("n4","f4",l);b("p","n1",m);b("p","n2",m);b("p","n3",m);b("p","n4",m);b("u1","u2",k);b("u2","u3",k);b("u3","u1",k);b("c","t",p);b("p","c",n);b("cn1","cn2",n);b("cn3","cn4",n);b("cf1","cf2",n);b("cf3","cf4",n);d.setAttribute("position",new B(f,3));d.setAttribute("color",new B(g,3));da.call(this,d,e);this.type="CameraHelper";this.camera=a;this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix();
|
|
|
-this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.pointMap=h;this.update()}function W(a,b,c,d,e,f,g){yf.set(e,f,g).unproject(d);a=b[a];if(void 0!==a)for(c=c.getAttribute("position"),b=0,d=a.length;b<d;b++)c.setXYZ(a[b],yf.x,yf.y,yf.z)}function ub(a,b){this.object=a;void 0===b&&(b=16776960);a=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var c=new Float32Array(24),d=new F;d.setIndex(new G(a,1));d.setAttribute("position",new G(c,3));da.call(this,d,new ja({color:b,toneMapped:!1}));
|
|
|
-this.type="BoxHelper";this.matrixAutoUpdate=!1;this.update()}function pe(a,b){this.type="Box3Helper";this.box=a;b=b||16776960;a=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var c=new F;c.setIndex(new G(a,1));c.setAttribute("position",new B([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3));da.call(this,c,new ja({color:b,toneMapped:!1}));this.type="Box3Helper";this.geometry.computeBoundingSphere()}function qe(a,b,c){this.plane=a;this.size=void 0===b?1:b;a=void 0!==
|
|
|
-c?c:16776960;b=new F;b.setAttribute("position",new B([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3));b.computeBoundingSphere();Ja.call(this,b,new ja({color:a,toneMapped:!1}));this.type="PlaneHelper";b=new F;b.setAttribute("position",new B([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3));b.computeBoundingSphere();this.add(new U(b,new Na({color:a,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}function vb(a,b,c,d,e,f){y.call(this);this.type="ArrowHelper";void 0===
|
|
|
-a&&(a=new n(0,0,1));void 0===b&&(b=new n(0,0,0));void 0===c&&(c=1);void 0===d&&(d=16776960);void 0===e&&(e=.2*c);void 0===f&&(f=.2*e);void 0===zf&&(zf=new F,zf.setAttribute("position",new B([0,0,0,0,1,0],3)),Qg=new rb(0,.5,1,5,1),Qg.translate(0,-.5,0));this.position.copy(b);this.line=new Ja(zf,new ja({color:d,toneMapped:!1}));this.line.matrixAutoUpdate=!1;this.add(this.line);this.cone=new U(Qg,new Na({color:d,toneMapped:!1}));this.cone.matrixAutoUpdate=!1;this.add(this.cone);this.setDirection(a);
|
|
|
-this.setLength(c,e,f)}function re(a){a=a||1;var b=[0,0,0,a,0,0,0,0,0,0,a,0,0,0,0,0,0,a];a=new F;a.setAttribute("position",new B(b,3));a.setAttribute("color",new B([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));b=new ja({vertexColors:!0,toneMapped:!1});da.call(this,a,b);this.type="AxesHelper"}function Rg(a){this._renderer=a;this._pingPongRenderTarget=null;a=new Float32Array(20);var b=new n(0,1,0);a=new sb({defines:{n:20},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:a},latitudinal:{value:!1},
|
|
|
-dTheta:{value:0},mipInt:{value:0},poleAxis:{value:b},inputEncoding:{value:lb[3E3]},outputEncoding:{value:lb[3E3]}},vertexShader:Sg(),fragmentShader:"\nprecision mediump float;\nprecision mediump int;\nvarying vec3 vOutputDirection;\nuniform sampler2D envMap;\nuniform int samples;\nuniform float weights[n];\nuniform bool latitudinal;\nuniform float dTheta;\nuniform float mipInt;\nuniform vec3 poleAxis;\n\n"+Tg()+"\n\n#define ENVMAP_TYPE_CUBE_UV\n#include <cube_uv_reflection_fragment>\n\nvec3 getSample(float theta, vec3 axis) {\n\tfloat cosTheta = cos(theta);\n\t// Rodrigues' axis-angle rotation\n\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t+ cross(axis, vOutputDirection) * sin(theta)\n\t\t+ axis * dot(axis, vOutputDirection) * (1.0 - cosTheta);\n\treturn bilinearCubeUV(envMap, sampleDirection, mipInt);\n}\n\nvoid main() {\n\tvec3 axis = latitudinal ? poleAxis : cross(poleAxis, vOutputDirection);\n\tif (all(equal(axis, vec3(0.0))))\n\t\taxis = vec3(vOutputDirection.z, 0.0, - vOutputDirection.x);\n\taxis = normalize(axis);\n\tgl_FragColor = vec4(0.0);\n\tgl_FragColor.rgb += weights[0] * getSample(0.0, axis);\n\tfor (int i = 1; i < n; i++) {\n\t\tif (i >= samples)\n\t\t\tbreak;\n\t\tfloat theta = dTheta * float(i);\n\t\tgl_FragColor.rgb += weights[i] * getSample(-1.0 * theta, axis);\n\t\tgl_FragColor.rgb += weights[i] * getSample(theta, axis);\n\t}\n\tgl_FragColor = linearToOutputTexel(gl_FragColor);\n}\n\t\t",
|
|
|
+ba);g.setValue(I,"boneTextureSize",a.boneTextureSize)}else g.setOptional(I,a,"boneMatrices");if(t||h.receiveShadow!==d.receiveShadow)h.receiveShadow=d.receiveShadow,g.setValue(I,"receiveShadow",d.receiveShadow);t&&(g.setValue(I,"toneMappingExposure",O.toneMappingExposure),h.needsLights&&(t=k,l.ambientLightColor.needsUpdate=t,l.lightProbe.needsUpdate=t,l.directionalLights.needsUpdate=t,l.directionalLightShadows.needsUpdate=t,l.pointLights.needsUpdate=t,l.pointLightShadows.needsUpdate=t,l.spotLights.needsUpdate=
|
|
|
+t,l.spotLightShadows.needsUpdate=t,l.rectAreaLights.needsUpdate=t,l.hemisphereLights.needsUpdate=t),e&&c.fog&&xa.refreshFogUniforms(l,e),xa.refreshMaterialUniforms(l,c,f,X,Pa),void 0!==l.ltc_1&&(l.ltc_1.value=E.LTC_1),void 0!==l.ltc_2&&(l.ltc_2.value=E.LTC_2),Eb.upload(I,h.uniformsList,l,ba));c.isShaderMaterial&&!0===c.uniformsNeedUpdate&&(Eb.upload(I,h.uniformsList,l,ba),c.uniformsNeedUpdate=!1);c.isSpriteMaterial&&g.setValue(I,"center",d.center);g.setValue(I,"modelViewMatrix",d.modelViewMatrix);
|
|
|
+g.setValue(I,"normalMatrix",d.normalMatrix);g.setValue(I,"modelMatrix",d.matrixWorld);return b}a=a||{};var q=void 0!==a.canvas?a.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),r=void 0!==a.context?a.context:null,u=void 0!==a.alpha?a.alpha:!1,A=void 0!==a.depth?a.depth:!0,z=void 0!==a.stencil?a.stencil:!0,x=void 0!==a.antialias?a.antialias:!1,Ba=void 0!==a.premultipliedAlpha?a.premultipliedAlpha:!0,ma=void 0!==a.preserveDrawingBuffer?a.preserveDrawingBuffer:!1,N=void 0!==
|
|
|
+a.powerPreference?a.powerPreference:"default",C=void 0!==a.failIfMajorPerformanceCaveat?a.failIfMajorPerformanceCaveat:!1,P=null,y=null;this.domElement=q;this.debug={checkShaderErrors:!0};this.sortObjects=this.autoClearStencil=this.autoClearDepth=this.autoClearColor=this.autoClear=!0;this.clippingPlanes=[];this.localClippingEnabled=!1;this.gammaFactor=2;this.outputEncoding=3E3;this.physicallyCorrectLights=!1;this.toneMapping=0;this.toneMappingExposure=1;this.maxMorphTargets=8;this.maxMorphNormals=
|
|
|
+4;var O=this,B=!1,D=null,F=0,J=0,G=null,K=null,H=-1;var Q=b=null;var Le=!1;var S=null,R=null,aa=new ea,U=new ea,ca=null,Y=q.width,Pa=q.height,X=1,ha=null,ja=null,Z=new ea(0,0,Y,Pa),da=new ea(0,0,Y,Pa),ka=!1,na=new Ec,Va=new oj,Je=!1,kg=!1,Jd=new M,Hb=new n,lg={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};try{u={alpha:u,depth:A,stencil:z,antialias:x,premultipliedAlpha:Ba,preserveDrawingBuffer:ma,powerPreference:N,failIfMajorPerformanceCaveat:C};q.addEventListener("webglcontextlost",
|
|
|
+d,!1);q.addEventListener("webglcontextrestored",e,!1);var I=r||q.getContext("webgl",u)||q.getContext("experimental-webgl",u);if(null===I){if(null!==q.getContext("webgl"))throw Error("Error creating WebGL context with your selected attributes.");throw Error("Error creating WebGL context.");}void 0===I.getShaderPrecisionFormat&&(I.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(Wh){throw console.error("THREE.WebGLRenderer: "+Wh.message),Wh;}var ra,Fa,V,W,T,ba,la,
|
|
|
+ua,oa,sa,xa,wa,va,pa,ya,Aa,Da,qa;c();var ta=new Vh(O,I);this.xr=ta;var Ea=new Th(O,oa,Fa.maxTextureSize);this.shadowMap=Ea;this.getContext=function(){return I};this.getContextAttributes=function(){return I.getContextAttributes()};this.forceContextLoss=function(){var a=ra.get("WEBGL_lose_context");a&&a.loseContext()};this.forceContextRestore=function(){var a=ra.get("WEBGL_lose_context");a&&a.restoreContext()};this.getPixelRatio=function(){return X};this.setPixelRatio=function(a){void 0!==a&&(X=a,this.setSize(Y,
|
|
|
+Pa,!1))};this.getSize=function(a){void 0===a&&(console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"),a=new w);return a.set(Y,Pa)};this.setSize=function(a,b,c){ta.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(Y=a,Pa=b,q.width=Math.floor(a*X),q.height=Math.floor(b*X),!1!==c&&(q.style.width=a+"px",q.style.height=b+"px"),this.setViewport(0,0,a,b))};this.getDrawingBufferSize=function(a){void 0===a&&(console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"),
|
|
|
+a=new w);return a.set(Y*X,Pa*X).floor()};this.setDrawingBufferSize=function(a,b,c){Y=a;Pa=b;X=c;q.width=Math.floor(a*c);q.height=Math.floor(b*c);this.setViewport(0,0,a,b)};this.getCurrentViewport=function(a){void 0===a&&(console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"),a=new ea);return a.copy(aa)};this.getViewport=function(a){return a.copy(Z)};this.setViewport=function(a,b,c,d){a.isVector4?Z.set(a.x,a.y,a.z,a.w):Z.set(a,b,c,d);V.viewport(aa.copy(Z).multiplyScalar(X).floor())};
|
|
|
+this.getScissor=function(a){return a.copy(da)};this.setScissor=function(a,b,c,d){a.isVector4?da.set(a.x,a.y,a.z,a.w):da.set(a,b,c,d);V.scissor(U.copy(da).multiplyScalar(X).floor())};this.getScissorTest=function(){return ka};this.setScissorTest=function(a){V.setScissorTest(ka=a)};this.setOpaqueSort=function(a){ha=a};this.setTransparentSort=function(a){ja=a};this.getClearColor=function(){return pa.getClearColor()};this.setClearColor=function(){pa.setClearColor.apply(pa,arguments)};this.getClearAlpha=
|
|
|
+function(){return pa.getClearAlpha()};this.setClearAlpha=function(){pa.setClearAlpha.apply(pa,arguments)};this.clear=function(a,b,c){var d=0;if(void 0===a||a)d|=16384;if(void 0===b||b)d|=256;if(void 0===c||c)d|=1024;I.clear(d)};this.clearColor=function(){this.clear(!0,!1,!1)};this.clearDepth=function(){this.clear(!1,!0,!1)};this.clearStencil=function(){this.clear(!1,!1,!0)};this.dispose=function(){q.removeEventListener("webglcontextlost",d,!1);q.removeEventListener("webglcontextrestored",e,!1);wa.dispose();
|
|
|
+va.dispose();T.dispose();oa.dispose();ta.dispose();za.stop()};this.renderBufferImmediate=function(a,b){V.initAttributes();var c=T.get(a);a.hasPositions&&!c.position&&(c.position=I.createBuffer());a.hasNormals&&!c.normal&&(c.normal=I.createBuffer());a.hasUvs&&!c.uv&&(c.uv=I.createBuffer());a.hasColors&&!c.color&&(c.color=I.createBuffer());b=b.getAttributes();a.hasPositions&&(I.bindBuffer(34962,c.position),I.bufferData(34962,a.positionArray,35048),V.enableAttribute(b.position),I.vertexAttribPointer(b.position,
|
|
|
+3,5126,!1,0,0));a.hasNormals&&(I.bindBuffer(34962,c.normal),I.bufferData(34962,a.normalArray,35048),V.enableAttribute(b.normal),I.vertexAttribPointer(b.normal,3,5126,!1,0,0));a.hasUvs&&(I.bindBuffer(34962,c.uv),I.bufferData(34962,a.uvArray,35048),V.enableAttribute(b.uv),I.vertexAttribPointer(b.uv,2,5126,!1,0,0));a.hasColors&&(I.bindBuffer(34962,c.color),I.bufferData(34962,a.colorArray,35048),V.enableAttribute(b.color),I.vertexAttribPointer(b.color,3,5126,!1,0,0));V.disableUnusedAttributes();I.drawArrays(4,
|
|
|
+0,a.count);a.count=0};this.renderBufferDirect=function(a,c,d,e,f,g){null===c&&(c=lg);var h=f.isMesh&&0>f.matrixWorld.determinant(),l=k(a,c,e,f);V.setMaterial(e,h);var m=!1;if(b!==d.id||Q!==l.id||Le!==(!0===e.wireframe))b=d.id,Q=l.id,Le=!0===e.wireframe,m=!0;if(e.morphTargets||e.morphNormals)ya.update(f,d,e,l),m=!0;!0===f.isInstancedMesh&&(m=!0);a=d.index;c=d.attributes.position;if(null===a){if(void 0===c||0===c.count)return}else if(0===a.count)return;var t=1;!0===e.wireframe&&(a=ua.getWireframeAttribute(d),
|
|
|
+t=2);h=Aa;if(null!==a){var p=la.get(a);h=Da;h.setIndex(p)}if(m){if(!1!==Fa.isWebGL2||!f.isInstancedMesh&&!d.isInstancedBufferGeometry||null!==ra.get("ANGLE_instanced_arrays")){V.initAttributes();m=d.attributes;l=l.getAttributes();var q=e.defaultAttributeValues;for(N in l){var v=l[N];if(0<=v){var r=m[N];if(void 0!==r){var u=r.normalized,n=r.itemSize,A=la.get(r);if(void 0!==A){var x=A.buffer,z=A.type;A=A.bytesPerElement;if(r.isInterleavedBufferAttribute){var C=r.data,w=C.stride;r=r.offset;C&&C.isInstancedInterleavedBuffer?
|
|
|
+(V.enableAttributeAndDivisor(v,C.meshPerAttribute),void 0===d._maxInstanceCount&&(d._maxInstanceCount=C.meshPerAttribute*C.count)):V.enableAttribute(v);I.bindBuffer(34962,x);V.vertexAttribPointer(v,n,z,u,w*A,r*A)}else r.isInstancedBufferAttribute?(V.enableAttributeAndDivisor(v,r.meshPerAttribute),void 0===d._maxInstanceCount&&(d._maxInstanceCount=r.meshPerAttribute*r.count)):V.enableAttribute(v),I.bindBuffer(34962,x),V.vertexAttribPointer(v,n,z,u,0,0)}}else if("instanceMatrix"===N)n=la.get(f.instanceMatrix),
|
|
|
+void 0!==n&&(u=n.buffer,n=n.type,V.enableAttributeAndDivisor(v+0,1),V.enableAttributeAndDivisor(v+1,1),V.enableAttributeAndDivisor(v+2,1),V.enableAttributeAndDivisor(v+3,1),I.bindBuffer(34962,u),I.vertexAttribPointer(v+0,4,n,!1,64,0),I.vertexAttribPointer(v+1,4,n,!1,64,16),I.vertexAttribPointer(v+2,4,n,!1,64,32),I.vertexAttribPointer(v+3,4,n,!1,64,48));else if(void 0!==q&&(u=q[N],void 0!==u))switch(u.length){case 2:I.vertexAttrib2fv(v,u);break;case 3:I.vertexAttrib3fv(v,u);break;case 4:I.vertexAttrib4fv(v,
|
|
|
+u);break;default:I.vertexAttrib1fv(v,u)}}}V.disableUnusedAttributes()}null!==a&&I.bindBuffer(34963,p.buffer)}var N=d.drawRange.start*t;m=null!==g?g.start*t:0;p=Math.max(N,m);g=Math.max(0,Math.min(null!==a?a.count:c.count,N+d.drawRange.count*t,m+(null!==g?g.count*t:Infinity))-1-p+1);0!==g&&(f.isMesh?!0===e.wireframe?(V.setLineWidth(e.wireframeLinewidth*(null===G?X:1)),h.setMode(1)):h.setMode(4):f.isLine?(e=e.linewidth,void 0===e&&(e=1),V.setLineWidth(e*(null===G?X:1)),f.isLineSegments?h.setMode(1):
|
|
|
+f.isLineLoop?h.setMode(2):h.setMode(3)):f.isPoints?h.setMode(0):f.isSprite&&h.setMode(4),f.isInstancedMesh?h.renderInstances(d,p,g,f.count):d.isInstancedBufferGeometry?h.renderInstances(d,p,g,Math.min(d.instanceCount,d._maxInstanceCount)):h.render(p,g))};this.compile=function(a,b){y=va.get(a,b);y.init();a.traverse(function(a){a.isLight&&(y.pushLight(a),a.castShadow&&y.pushShadow(a))});y.setupLights(b);var c={};a.traverse(function(b){var d=b.material;if(d)if(Array.isArray(d))for(var e=0;e<d.length;e++){var f=
|
|
|
+d[e];!1===f.uuid in c&&(p(f,a,b),c[f.uuid]=!0)}else!1===d.uuid in c&&(p(d,a,b),c[d.uuid]=!0)})};var Ca=null,za=new wh;za.setAnimationLoop(function(a){ta.isPresenting||Ca&&Ca(a)});"undefined"!==typeof window&&za.setContext(window);this.setAnimationLoop=function(a){Ca=a;ta.setAnimationLoop(a);za.start()};this.render=function(a,c,d,e){if(void 0!==d){console.warn("THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead.");var f=d}if(void 0!==e){console.warn("THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead.");
|
|
|
+var g=e}if(void 0!==c&&!0!==c.isCamera)console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");else if(!0!==B){Q=b=null;Le=!1;H=-1;S=null;!0===a.autoUpdate&&a.updateMatrixWorld();null===c.parent&&c.updateMatrixWorld();!0===ta.enabled&&!0===ta.isPresenting&&(c=ta.getCamera(c));if(!0===a.isScene)a.onBeforeRender(O,a,c,f||G);y=va.get(a,c);y.init();Jd.multiplyMatrices(c.projectionMatrix,c.matrixWorldInverse);na.setFromProjectionMatrix(Jd);kg=this.localClippingEnabled;Je=
|
|
|
+Va.init(this.clippingPlanes,kg,c);P=wa.get(a,c);P.init();l(a,c,0,O.sortObjects);P.finish();!0===O.sortObjects&&P.sort(ha,ja);!0===Je&&Va.beginShadows();Ea.render(y.state.shadowsArray,a,c);y.setupLights(c);!0===Je&&Va.endShadows();!0===this.info.autoReset&&this.info.reset();void 0!==f&&this.setRenderTarget(f);pa.render(P,a,c,g);d=P.opaque;e=P.transparent;0<d.length&&m(d,a,c);0<e.length&&m(e,a,c);if(!0===a.isScene)a.onAfterRender(O,a,c);null!==G&&(ba.updateRenderTargetMipmap(G),ba.updateMultisampleRenderTarget(G));
|
|
|
+V.buffers.depth.setTest(!0);V.buffers.depth.setMask(!0);V.buffers.color.setMask(!0);V.setPolygonOffset(!1);y=P=null}};this.setFramebuffer=function(a){D!==a&&null===G&&I.bindFramebuffer(36160,a);D=a};this.getActiveCubeFace=function(){return F};this.getActiveMipmapLevel=function(){return J};this.getRenderTarget=function(){return G};this.setRenderTarget=function(a,b,c){G=a;F=b;J=c;a&&void 0===T.get(a).__webglFramebuffer&&ba.setupRenderTarget(a);var d=D,e=!1;a?(d=T.get(a).__webglFramebuffer,a.isWebGLCubeRenderTarget?
|
|
|
+(d=d[b||0],e=!0):d=a.isWebGLMultisampleRenderTarget?T.get(a).__webglMultisampledFramebuffer:d,aa.copy(a.viewport),U.copy(a.scissor),ca=a.scissorTest):(aa.copy(Z).multiplyScalar(X).floor(),U.copy(da).multiplyScalar(X).floor(),ca=ka);K!==d&&(I.bindFramebuffer(36160,d),K=d);V.viewport(aa);V.scissor(U);V.setScissorTest(ca);e&&(a=T.get(a.texture),I.framebufferTexture2D(36160,36064,34069+(b||0),a.__webglTexture,c||0))};this.readRenderTargetPixels=function(a,b,c,d,e,f,g){if(a&&a.isWebGLRenderTarget){var h=
|
|
|
+T.get(a).__webglFramebuffer;a.isWebGLCubeRenderTarget&&void 0!==g&&(h=h[g]);if(h){g=!1;h!==K&&(I.bindFramebuffer(36160,h),g=!0);try{var l=a.texture,m=l.format,t=l.type;1023!==m&&qa.convert(m)!==I.getParameter(35739)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):1009===t||qa.convert(t)===I.getParameter(35738)||1015===t&&(Fa.isWebGL2||ra.get("OES_texture_float")||ra.get("WEBGL_color_buffer_float"))||1016===t&&(Fa.isWebGL2?
|
|
|
+ra.get("EXT_color_buffer_float"):ra.get("EXT_color_buffer_half_float"))?36053===I.checkFramebufferStatus(36160)?0<=b&&b<=a.width-d&&0<=c&&c<=a.height-e&&I.readPixels(b,c,d,e,qa.convert(m),qa.convert(t),f):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete."):console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.")}finally{g&&I.bindFramebuffer(36160,K)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")};
|
|
|
+this.copyFramebufferToTexture=function(a,b,c){void 0===c&&(c=0);var d=Math.pow(2,-c),e=Math.floor(b.image.width*d);d=Math.floor(b.image.height*d);var f=qa.convert(b.format);ba.setTexture2D(b,0);I.copyTexImage2D(3553,c,f,a.x,a.y,e,d,0);V.unbindTexture()};this.copyTextureToTexture=function(a,b,c,d){void 0===d&&(d=0);var e=b.image.width,f=b.image.height,g=qa.convert(c.format),h=qa.convert(c.type);ba.setTexture2D(c,0);b.isDataTexture?I.texSubImage2D(3553,d,a.x,a.y,e,f,g,h,b.image.data):b.isCompressedTexture?
|
|
|
+I.compressedTexSubImage2D(3553,d,a.x,a.y,b.mipmaps[0].width,b.mipmaps[0].height,g,b.mipmaps[0].data):I.texSubImage2D(3553,d,a.x,a.y,g,h,b.image);0===d&&c.generateMipmaps&&I.generateMipmap(3553);V.unbindTexture()};this.initTexture=function(a){ba.setTexture2D(a,0);V.unbindTexture()};"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}function Oe(a,b){this.name="";this.color=new D(a);this.density=void 0!==b?b:2.5E-4}function Pe(a,b,c){this.name=
|
|
|
+"";this.color=new D(a);this.near=void 0!==b?b:1;this.far=void 0!==c?c:1E3}function Ia(a,b){this.array=a;this.stride=b;this.count=void 0!==a?a.length/b:0;this.usage=35044;this.updateRange={offset:0,count:-1};this.version=0;this.uuid=L.generateUUID()}function Ib(a,b,c,d){this.name="";this.data=a;this.itemSize=b;this.offset=c;this.normalized=!0===d}function Jb(a){K.call(this);this.type="SpriteMaterial";this.color=new D(16777215);this.alphaMap=this.map=null;this.rotation=0;this.transparent=this.sizeAttenuation=
|
|
|
+!0;this.setValues(a)}function Ld(a){y.call(this);this.type="Sprite";if(void 0===Jc){Jc=new F;var b=new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]);b=new Ia(b,5);Jc.setIndex([0,1,2,0,2,3]);Jc.setAttribute("position",new Ib(b,3,0,!1));Jc.setAttribute("uv",new Ib(b,2,3,!1))}this.geometry=Jc;this.material=void 0!==a?a:new Jb;this.center=new w(.5,.5)}function Qe(a,b,c,d,e,f){Kc.subVectors(a,c).addScalar(.5).multiply(d);void 0!==e?(Md.x=f*Kc.x-e*Kc.y,Md.y=e*Kc.x+f*Kc.y):Md.copy(Kc);
|
|
|
+a.copy(b);a.x+=Md.x;a.y+=Md.y;a.applyMatrix4(Xh)}function Nd(){y.call(this);this._currentLevel=0;this.type="LOD";Object.defineProperties(this,{levels:{enumerable:!0,value:[]}});this.autoUpdate=!0}function Re(a,b){a&&a.isGeometry&&console.error("THREE.SkinnedMesh no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");U.call(this,a,b);this.type="SkinnedMesh";this.bindMode="attached";this.bindMatrix=new M;this.bindMatrixInverse=new M}function Se(a,b){a=a||[];this.bones=a.slice(0);this.boneMatrices=
|
|
|
+new Float32Array(16*this.bones.length);this.frame=-1;if(void 0===b)this.calculateInverses();else if(this.bones.length===b.length)this.boneInverses=b.slice(0);else for(console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[],a=0,b=this.bones.length;a<b;a++)this.boneInverses.push(new M)}function ng(){y.call(this);this.type="Bone"}function Te(a,b,c){U.call(this,a,b);this.instanceMatrix=new G(new Float32Array(16*c),16);this.count=c;this.frustumCulled=!1}function ja(a){K.call(this);
|
|
|
+this.type="LineBasicMaterial";this.color=new D(16777215);this.linewidth=1;this.linejoin=this.linecap="round";this.morphTargets=!1;this.setValues(a)}function Ja(a,b,c){1===c&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead.");y.call(this);this.type="Line";this.geometry=void 0!==a?a:new F;this.material=void 0!==b?b:new ja;this.updateMorphTargets()}function da(a,b){Ja.call(this,a,b);this.type="LineSegments"}function Ue(a,b){Ja.call(this,a,b);
|
|
|
+this.type="LineLoop"}function Wa(a){K.call(this);this.type="PointsMaterial";this.color=new D(16777215);this.alphaMap=this.map=null;this.size=1;this.sizeAttenuation=!0;this.morphTargets=!1;this.setValues(a)}function Lc(a,b){y.call(this);this.type="Points";this.geometry=void 0!==a?a:new F;this.material=void 0!==b?b:new Wa;this.updateMorphTargets()}function og(a,b,c,d,e,f,g){var h=pg.distanceSqToPoint(a);h<c&&(c=new n,pg.closestPointToPoint(a,c),c.applyMatrix4(d),a=e.ray.origin.distanceTo(c),a<e.near||
|
|
|
+a>e.far||f.push({distance:a,distanceToRay:Math.sqrt(h),point:c,index:b,face:null,object:g}))}function qg(a,b,c,d,e,f,g,h,l){R.call(this,a,b,c,d,e,f,g,h,l);this.format=void 0!==g?g:1022;this.minFilter=void 0!==f?f:1006;this.magFilter=void 0!==e?e:1006;this.generateMipmaps=!1}function Mc(a,b,c,d,e,f,g,h,l,m,t,p){R.call(this,null,f,g,h,l,m,d,e,t,p);this.image={width:b,height:c};this.mipmaps=a;this.generateMipmaps=this.flipY=!1}function Od(a,b,c,d,e,f,g,h,l){R.call(this,a,b,c,d,e,f,g,h,l);this.needsUpdate=
|
|
|
+!0}function Pd(a,b,c,d,e,f,g,h,l,m){m=void 0!==m?m:1026;if(1026!==m&&1027!==m)throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===c&&1026===m&&(c=1012);void 0===c&&1027===m&&(c=1020);R.call(this,null,d,e,f,g,h,m,c,l);this.image={width:a,height:b};this.magFilter=void 0!==g?g:1003;this.minFilter=void 0!==h?h:1003;this.generateMipmaps=this.flipY=!1}function Nc(a){F.call(this);this.type="WireframeGeometry";var b=[],c=[0,0],d={},e=["a","b","c"];if(a&&
|
|
|
+a.isGeometry){for(var f=a.faces,g=0,h=f.length;g<h;g++)for(var l=f[g],m=0;3>m;m++){var t=l[e[m]],p=l[e[(m+1)%3]];c[0]=Math.min(t,p);c[1]=Math.max(t,p);t=c[0]+","+c[1];void 0===d[t]&&(d[t]={index1:c[0],index2:c[1]})}for(var k in d)c=d[k],f=a.vertices[c.index1],b.push(f.x,f.y,f.z),f=a.vertices[c.index2],b.push(f.x,f.y,f.z)}else if(a&&a.isBufferGeometry)if(k=new n,null!==a.index){e=a.attributes.position;g=a.index;a=a.groups;0===a.length&&(a=[{start:0,count:g.count,materialIndex:0}]);h=0;for(l=a.length;h<
|
|
|
+l;++h)for(t=a[h],m=p=t.start,t=p+t.count;m<t;m+=3)for(p=0;3>p;p++){var q=g.getX(m+p),r=g.getX(m+(p+1)%3);c[0]=Math.min(q,r);c[1]=Math.max(q,r);q=c[0]+","+c[1];void 0===d[q]&&(d[q]={index1:c[0],index2:c[1]})}for(f in d)c=d[f],k.fromBufferAttribute(e,c.index1),b.push(k.x,k.y,k.z),k.fromBufferAttribute(e,c.index2),b.push(k.x,k.y,k.z)}else for(d=a.attributes.position,c=0,f=d.count/3;c<f;c++)for(a=0;3>a;a++)k.fromBufferAttribute(d,3*c+a),b.push(k.x,k.y,k.z),k.fromBufferAttribute(d,3*c+(a+1)%3),b.push(k.x,
|
|
|
+k.y,k.z);this.setAttribute("position",new B(b,3))}function Qd(a,b,c){H.call(this);this.type="ParametricGeometry";this.parameters={func:a,slices:b,stacks:c};this.fromBufferGeometry(new Oc(a,b,c));this.mergeVertices()}function Oc(a,b,c){F.call(this);this.type="ParametricBufferGeometry";this.parameters={func:a,slices:b,stacks:c};var d=[],e=[],f=[],g=[],h=new n,l=new n,m=new n,t=new n,p=new n;3>a.length&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");
|
|
|
+for(var k=b+1,q=0;q<=c;q++)for(var r=q/c,u=0;u<=b;u++){var A=u/b;a(A,r,l);e.push(l.x,l.y,l.z);0<=A-1E-5?(a(A-1E-5,r,m),t.subVectors(l,m)):(a(A+1E-5,r,m),t.subVectors(m,l));0<=r-1E-5?(a(A,r-1E-5,m),p.subVectors(l,m)):(a(A,r+1E-5,m),p.subVectors(m,l));h.crossVectors(t,p).normalize();f.push(h.x,h.y,h.z);g.push(A,r)}for(a=0;a<c;a++)for(h=0;h<b;h++)l=a*k+h+1,m=(a+1)*k+h+1,t=(a+1)*k+h,d.push(a*k+h,l,t),d.push(l,m,t);this.setIndex(d);this.setAttribute("position",new B(e,3));this.setAttribute("normal",new B(f,
|
|
|
+3));this.setAttribute("uv",new B(g,2))}function Rd(a,b,c,d){H.call(this);this.type="PolyhedronGeometry";this.parameters={vertices:a,indices:b,radius:c,detail:d};this.fromBufferGeometry(new Ea(a,b,c,d));this.mergeVertices()}function Ea(a,b,c,d){function e(a){h.push(a.x,a.y,a.z)}function f(b,c){b*=3;c.x=a[b+0];c.y=a[b+1];c.z=a[b+2]}function g(a,b,c,d){0>d&&1===a.x&&(l[b]=a.x-1);0===c.x&&0===c.z&&(l[b]=d/2/Math.PI+.5)}F.call(this);this.type="PolyhedronBufferGeometry";this.parameters={vertices:a,indices:b,
|
|
|
+radius:c,detail:d};c=c||1;d=d||0;var h=[],l=[];(function(a){for(var c=new n,d=new n,g=new n,h=0;h<b.length;h+=3){f(b[h+0],c);f(b[h+1],d);f(b[h+2],g);for(var l=c,m=d,k=g,z=Math.pow(2,a),x=[],w=0;w<=z;w++){x[w]=[];for(var y=l.clone().lerp(k,w/z),N=m.clone().lerp(k,w/z),C=z-w,P=0;P<=C;P++)x[w][P]=0===P&&w===z?y:y.clone().lerp(N,P/C)}for(l=0;l<z;l++)for(m=0;m<2*(z-l)-1;m++)k=Math.floor(m/2),0===m%2?(e(x[l][k+1]),e(x[l+1][k]),e(x[l][k])):(e(x[l][k+1]),e(x[l+1][k+1]),e(x[l+1][k]))}})(d);(function(a){for(var b=
|
|
|
+new n,c=0;c<h.length;c+=3)b.x=h[c+0],b.y=h[c+1],b.z=h[c+2],b.normalize().multiplyScalar(a),h[c+0]=b.x,h[c+1]=b.y,h[c+2]=b.z})(c);(function(){for(var a=new n,b=0;b<h.length;b+=3)a.x=h[b+0],a.y=h[b+1],a.z=h[b+2],l.push(Math.atan2(a.z,-a.x)/2/Math.PI+.5,1-(Math.atan2(-a.y,Math.sqrt(a.x*a.x+a.z*a.z))/Math.PI+.5));a=new n;b=new n;for(var c=new n,d=new n,e=new w,f=new w,k=new w,A=0,z=0;A<h.length;A+=9,z+=6){a.set(h[A+0],h[A+1],h[A+2]);b.set(h[A+3],h[A+4],h[A+5]);c.set(h[A+6],h[A+7],h[A+8]);e.set(l[z+0],
|
|
|
+l[z+1]);f.set(l[z+2],l[z+3]);k.set(l[z+4],l[z+5]);d.copy(a).add(b).add(c).divideScalar(3);var x=Math.atan2(d.z,-d.x);g(e,z+0,a,x);g(f,z+2,b,x);g(k,z+4,c,x)}for(a=0;a<l.length;a+=6)b=l[a+0],c=l[a+2],d=l[a+4],e=Math.min(b,c,d),.9<Math.max(b,c,d)&&.1>e&&(.2>b&&(l[a+0]+=1),.2>c&&(l[a+2]+=1),.2>d&&(l[a+4]+=1))})();this.setAttribute("position",new B(h,3));this.setAttribute("normal",new B(h.slice(),3));this.setAttribute("uv",new B(l,2));0===d?this.computeVertexNormals():this.normalizeNormals()}function Sd(a,
|
|
|
+b){H.call(this);this.type="TetrahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new Pc(a,b));this.mergeVertices()}function Pc(a,b){Ea.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],a,b);this.type="TetrahedronBufferGeometry";this.parameters={radius:a,detail:b}}function Td(a,b){H.call(this);this.type="OctahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new ac(a,b));this.mergeVertices()}function ac(a,b){Ea.call(this,[1,0,0,
|
|
|
+-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],a,b);this.type="OctahedronBufferGeometry";this.parameters={radius:a,detail:b}}function Ud(a,b){H.call(this);this.type="IcosahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new Qc(a,b));this.mergeVertices()}function Qc(a,b){var c=(1+Math.sqrt(5))/2;Ea.call(this,[-1,c,0,1,c,0,-1,-c,0,1,-c,0,0,-1,c,0,1,c,0,-1,-c,0,1,-c,c,0,-1,c,0,1,-c,0,-1,-c,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,
|
|
|
+11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],a,b);this.type="IcosahedronBufferGeometry";this.parameters={radius:a,detail:b}}function Vd(a,b){H.call(this);this.type="DodecahedronGeometry";this.parameters={radius:a,detail:b};this.fromBufferGeometry(new Rc(a,b));this.mergeVertices()}function Rc(a,b){var c=(1+Math.sqrt(5))/2,d=1/c;Ea.call(this,[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-d,-c,0,-d,c,0,d,-c,0,d,c,-d,-c,0,-d,c,0,d,-c,0,d,c,
|
|
|
+0,-c,0,-d,c,0,-d,-c,0,d,c,0,d],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],a,b);this.type="DodecahedronBufferGeometry";this.parameters={radius:a,detail:b}}function Wd(a,b,c,d,e,f){H.call(this);this.type="TubeGeometry";this.parameters={path:a,tubularSegments:b,radius:c,radialSegments:d,
|
|
|
+closed:e};void 0!==f&&console.warn("THREE.TubeGeometry: taper has been removed.");a=new bc(a,b,c,d,e);this.tangents=a.tangents;this.normals=a.normals;this.binormals=a.binormals;this.fromBufferGeometry(a);this.mergeVertices()}function bc(a,b,c,d,e){function f(e){t=a.getPointAt(e/b,t);var f=g.normals[e];e=g.binormals[e];for(var m=0;m<=d;m++){var p=m/d*Math.PI*2,q=Math.sin(p);p=-Math.cos(p);l.x=p*f.x+q*e.x;l.y=p*f.y+q*e.y;l.z=p*f.z+q*e.z;l.normalize();v.push(l.x,l.y,l.z);h.x=t.x+c*l.x;h.y=t.y+c*l.y;
|
|
|
+h.z=t.z+c*l.z;k.push(h.x,h.y,h.z)}}F.call(this);this.type="TubeBufferGeometry";this.parameters={path:a,tubularSegments:b,radius:c,radialSegments:d,closed:e};b=b||64;c=c||1;d=d||8;e=e||!1;var g=a.computeFrenetFrames(b,e);this.tangents=g.tangents;this.normals=g.normals;this.binormals=g.binormals;var h=new n,l=new n,m=new w,t=new n,k=[],v=[],q=[],r=[];(function(){for(var a=0;a<b;a++)f(a);f(!1===e?b:0);for(a=0;a<=b;a++)for(var c=0;c<=d;c++)m.x=a/b,m.y=c/d,q.push(m.x,m.y);for(a=1;a<=b;a++)for(c=1;c<=d;c++){var g=
|
|
|
+(d+1)*a+(c-1),h=(d+1)*a+c,l=(d+1)*(a-1)+c;r.push((d+1)*(a-1)+(c-1),g,l);r.push(g,h,l)}})();this.setIndex(r);this.setAttribute("position",new B(k,3));this.setAttribute("normal",new B(v,3));this.setAttribute("uv",new B(q,2))}function Xd(a,b,c,d,e,f,g){H.call(this);this.type="TorusKnotGeometry";this.parameters={radius:a,tube:b,tubularSegments:c,radialSegments:d,p:e,q:f};void 0!==g&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead.");this.fromBufferGeometry(new Sc(a,
|
|
|
+b,c,d,e,f));this.mergeVertices()}function Sc(a,b,c,d,e,f){function g(a,b,c,d,e){var f=Math.sin(a);b=c/b*a;c=Math.cos(b);e.x=d*(2+c)*.5*Math.cos(a);e.y=d*(2+c)*f*.5;e.z=d*Math.sin(b)*.5}F.call(this);this.type="TorusKnotBufferGeometry";this.parameters={radius:a,tube:b,tubularSegments:c,radialSegments:d,p:e,q:f};a=a||1;b=b||.4;c=Math.floor(c)||64;d=Math.floor(d)||8;e=e||2;f=f||3;for(var h=[],l=[],m=[],t=[],k=new n,v=new n,q=new n,r=new n,u=new n,A=new n,z=new n,x=0;x<=c;++x){var w=x/c*e*Math.PI*2;g(w,
|
|
|
+e,f,a,q);g(w+.01,e,f,a,r);A.subVectors(r,q);z.addVectors(r,q);u.crossVectors(A,z);z.crossVectors(u,A);u.normalize();z.normalize();for(w=0;w<=d;++w){var y=w/d*Math.PI*2,N=-b*Math.cos(y);y=b*Math.sin(y);k.x=q.x+(N*z.x+y*u.x);k.y=q.y+(N*z.y+y*u.y);k.z=q.z+(N*z.z+y*u.z);l.push(k.x,k.y,k.z);v.subVectors(k,q).normalize();m.push(v.x,v.y,v.z);t.push(x/c);t.push(w/d)}}for(a=1;a<=c;a++)for(b=1;b<=d;b++)e=(d+1)*a+(b-1),f=(d+1)*a+b,k=(d+1)*(a-1)+b,h.push((d+1)*(a-1)+(b-1),e,k),h.push(e,f,k);this.setIndex(h);
|
|
|
+this.setAttribute("position",new B(l,3));this.setAttribute("normal",new B(m,3));this.setAttribute("uv",new B(t,2))}function Yd(a,b,c,d,e){H.call(this);this.type="TorusGeometry";this.parameters={radius:a,tube:b,radialSegments:c,tubularSegments:d,arc:e};this.fromBufferGeometry(new Tc(a,b,c,d,e));this.mergeVertices()}function Tc(a,b,c,d,e){F.call(this);this.type="TorusBufferGeometry";this.parameters={radius:a,tube:b,radialSegments:c,tubularSegments:d,arc:e};a=a||1;b=b||.4;c=Math.floor(c)||8;d=Math.floor(d)||
|
|
|
+6;e=e||2*Math.PI;for(var f=[],g=[],h=[],l=[],m=new n,k=new n,p=new n,v=0;v<=c;v++)for(var q=0;q<=d;q++){var r=q/d*e,u=v/c*Math.PI*2;k.x=(a+b*Math.cos(u))*Math.cos(r);k.y=(a+b*Math.cos(u))*Math.sin(r);k.z=b*Math.sin(u);g.push(k.x,k.y,k.z);m.x=a*Math.cos(r);m.y=a*Math.sin(r);p.subVectors(k,m).normalize();h.push(p.x,p.y,p.z);l.push(q/d);l.push(v/c)}for(a=1;a<=c;a++)for(b=1;b<=d;b++)e=(d+1)*(a-1)+b-1,m=(d+1)*(a-1)+b,k=(d+1)*a+b,f.push((d+1)*a+b-1,e,k),f.push(e,m,k);this.setIndex(f);this.setAttribute("position",
|
|
|
+new B(g,3));this.setAttribute("normal",new B(h,3));this.setAttribute("uv",new B(l,2))}function Yh(a,b,c,d,e){for(var f,g=0,h=b,l=c-d;h<c;h+=d)g+=(a[l]-a[h])*(a[h+1]+a[l+1]),l=h;if(e===0<g)for(e=b;e<c;e+=d)f=Zh(e,a[e],a[e+1],f);else for(e=c-d;e>=b;e-=d)f=Zh(e,a[e],a[e+1],f);f&&Ve(f,f.next)&&(Zd(f),f=f.next);return f}function Kb(a,b){if(!a)return a;b||(b=a);do{var c=!1;if(a.steiner||!Ve(a,a.next)&&0!==ka(a.prev,a,a.next))a=a.next;else{Zd(a);a=b=a.prev;if(a===a.next)break;c=!0}}while(c||a!==b);return b}
|
|
|
+function $d(a,b,c,d,e,f,g){if(a){if(!g&&f){var h=a,l=h;do null===l.z&&(l.z=rg(l.x,l.y,d,e,f)),l.prevZ=l.prev,l=l.nextZ=l.next;while(l!==h);l.prevZ.nextZ=null;l.prevZ=null;h=l;var m,k,p,v,q=1;do{l=h;var r=h=null;for(k=0;l;){k++;var n=l;for(m=p=0;m<q&&(p++,n=n.nextZ,n);m++);for(v=q;0<p||0<v&&n;)0!==p&&(0===v||!n||l.z<=n.z)?(m=l,l=l.nextZ,p--):(m=n,n=n.nextZ,v--),r?r.nextZ=m:h=m,m.prevZ=r,r=m;l=n}r.nextZ=null;q*=2}while(1<k)}for(h=a;a.prev!==a.next;){l=a.prev;n=a.next;if(f)r=Bk(a,d,e,f);else a:if(r=
|
|
|
+a,k=r.prev,p=r,q=r.next,0<=ka(k,p,q))r=!1;else{for(m=r.next.next;m!==r.prev;){if(Uc(k.x,k.y,p.x,p.y,q.x,q.y,m.x,m.y)&&0<=ka(m.prev,m,m.next)){r=!1;break a}m=m.next}r=!0}if(r)b.push(l.i/c),b.push(a.i/c),b.push(n.i/c),Zd(a),h=a=n.next;else if(a=n,a===h){if(!g)$d(Kb(a),b,c,d,e,f,1);else if(1===g){a=Kb(a);g=b;h=c;l=a;do n=l.prev,r=l.next.next,!Ve(n,r)&&$h(n,l,l.next,r)&&ae(n,r)&&ae(r,n)&&(g.push(n.i/h),g.push(l.i/h),g.push(r.i/h),Zd(l),Zd(l.next),l=a=r),l=l.next;while(l!==a);a=Kb(l);$d(a,b,c,d,e,f,2)}else if(2===
|
|
|
+g)a:{g=a;do{for(h=g.next.next;h!==g.prev;){if(l=g.i!==h.i){l=g;n=h;if(r=l.next.i!==n.i&&l.prev.i!==n.i){b:{r=l;do{if(r.i!==l.i&&r.next.i!==l.i&&r.i!==n.i&&r.next.i!==n.i&&$h(r,r.next,l,n)){r=!0;break b}r=r.next}while(r!==l);r=!1}r=!r}if(r){if(r=ae(l,n)&&ae(n,l)){r=l;k=!1;p=(l.x+n.x)/2;q=(l.y+n.y)/2;do r.y>q!==r.next.y>q&&r.next.y!==r.y&&p<(r.next.x-r.x)*(q-r.y)/(r.next.y-r.y)+r.x&&(k=!k),r=r.next;while(r!==l);r=k}r=r&&(ka(l.prev,l,n.prev)||ka(l,n.prev,n))||Ve(l,n)&&0<ka(l.prev,l,l.next)&&0<ka(n.prev,
|
|
|
+n,n.next)}l=r}if(l){a=ai(g,h);g=Kb(g,g.next);a=Kb(a,a.next);$d(g,b,c,d,e,f);$d(a,b,c,d,e,f);break a}h=h.next}g=g.next}while(g!==a)}break}}}}function Bk(a,b,c,d){var e=a.prev,f=a.next;if(0<=ka(e,a,f))return!1;var g=e.x>a.x?e.x>f.x?e.x:f.x:a.x>f.x?a.x:f.x,h=e.y>a.y?e.y>f.y?e.y:f.y:a.y>f.y?a.y:f.y,l=rg(e.x<a.x?e.x<f.x?e.x:f.x:a.x<f.x?a.x:f.x,e.y<a.y?e.y<f.y?e.y:f.y:a.y<f.y?a.y:f.y,b,c,d);b=rg(g,h,b,c,d);c=a.prevZ;for(d=a.nextZ;c&&c.z>=l&&d&&d.z<=b;){if(c!==a.prev&&c!==a.next&&Uc(e.x,e.y,a.x,a.y,f.x,
|
|
|
+f.y,c.x,c.y)&&0<=ka(c.prev,c,c.next))return!1;c=c.prevZ;if(d!==a.prev&&d!==a.next&&Uc(e.x,e.y,a.x,a.y,f.x,f.y,d.x,d.y)&&0<=ka(d.prev,d,d.next))return!1;d=d.nextZ}for(;c&&c.z>=l;){if(c!==a.prev&&c!==a.next&&Uc(e.x,e.y,a.x,a.y,f.x,f.y,c.x,c.y)&&0<=ka(c.prev,c,c.next))return!1;c=c.prevZ}for(;d&&d.z<=b;){if(d!==a.prev&&d!==a.next&&Uc(e.x,e.y,a.x,a.y,f.x,f.y,d.x,d.y)&&0<=ka(d.prev,d,d.next))return!1;d=d.nextZ}return!0}function Ck(a,b){return a.x-b.x}function Dk(a,b){var c=b,d=a.x,e=a.y,f=-Infinity;do{if(e<=
|
|
|
+c.y&&e>=c.next.y&&c.next.y!==c.y){var g=c.x+(e-c.y)*(c.next.x-c.x)/(c.next.y-c.y);if(g<=d&&g>f){f=g;if(g===d){if(e===c.y)return c;if(e===c.next.y)return c.next}var h=c.x<c.next.x?c:c.next}}c=c.next}while(c!==b);if(!h)return null;if(d===f)return h;b=h;g=h.x;var l=h.y,m=Infinity;c=h;do{if(d>=c.x&&c.x>=g&&d!==c.x&&Uc(e<l?d:f,e,g,l,e<l?f:d,e,c.x,c.y)){var k=Math.abs(e-c.y)/(d-c.x);var p;if((p=ae(c,a))&&!(p=k<m)&&(p=k===m)&&!(p=c.x>h.x)&&(p=c.x===h.x)){p=h;var v=c;p=0>ka(p.prev,p,v.prev)&&0>ka(v.next,
|
|
|
+p,p.next)}p&&(h=c,m=k)}c=c.next}while(c!==b);return h}function rg(a,b,c,d,e){a=32767*(a-c)*e;b=32767*(b-d)*e;a=(a|a<<8)&16711935;a=(a|a<<4)&252645135;a=(a|a<<2)&858993459;b=(b|b<<8)&16711935;b=(b|b<<4)&252645135;b=(b|b<<2)&858993459;return(a|a<<1)&1431655765|((b|b<<1)&1431655765)<<1}function Ek(a){var b=a,c=a;do{if(b.x<c.x||b.x===c.x&&b.y<c.y)c=b;b=b.next}while(b!==a);return c}function Uc(a,b,c,d,e,f,g,h){return 0<=(e-g)*(b-h)-(a-g)*(f-h)&&0<=(a-g)*(d-h)-(c-g)*(b-h)&&0<=(c-g)*(f-h)-(e-g)*(d-h)}function ka(a,
|
|
|
+b,c){return(b.y-a.y)*(c.x-b.x)-(b.x-a.x)*(c.y-b.y)}function Ve(a,b){return a.x===b.x&&a.y===b.y}function $h(a,b,c,d){var e=We(ka(a,b,c)),f=We(ka(a,b,d)),g=We(ka(c,d,a)),h=We(ka(c,d,b));return e!==f&&g!==h||0===e&&Xe(a,c,b)||0===f&&Xe(a,d,b)||0===g&&Xe(c,a,d)||0===h&&Xe(c,b,d)?!0:!1}function Xe(a,b,c){return b.x<=Math.max(a.x,c.x)&&b.x>=Math.min(a.x,c.x)&&b.y<=Math.max(a.y,c.y)&&b.y>=Math.min(a.y,c.y)}function We(a){return 0<a?1:0>a?-1:0}function ae(a,b){return 0>ka(a.prev,a,a.next)?0<=ka(a,b,a.next)&&
|
|
|
+0<=ka(a,a.prev,b):0>ka(a,b,a.prev)||0>ka(a,a.next,b)}function ai(a,b){var c=new sg(a.i,a.x,a.y),d=new sg(b.i,b.x,b.y),e=a.next,f=b.prev;a.next=b;b.prev=a;c.next=e;e.prev=c;d.next=c;c.prev=d;f.next=d;d.prev=f;return d}function Zh(a,b,c,d){a=new sg(a,b,c);d?(a.next=d.next,a.prev=d,d.next.prev=a,d.next=a):(a.prev=a,a.next=a);return a}function Zd(a){a.next.prev=a.prev;a.prev.next=a.next;a.prevZ&&(a.prevZ.nextZ=a.nextZ);a.nextZ&&(a.nextZ.prevZ=a.prevZ)}function sg(a,b,c){this.i=a;this.x=b;this.y=c;this.nextZ=
|
|
|
+this.prevZ=this.z=this.next=this.prev=null;this.steiner=!1}function bi(a){var b=a.length;2<b&&a[b-1].equals(a[0])&&a.pop()}function ci(a,b){for(var c=0;c<b.length;c++)a.push(b[c].x),a.push(b[c].y)}function cc(a,b){H.call(this);this.type="ExtrudeGeometry";this.parameters={shapes:a,options:b};this.fromBufferGeometry(new gb(a,b));this.mergeVertices()}function gb(a,b){function c(a){function c(a,b,c){b||console.error("THREE.ExtrudeGeometry: vec does not exist");return b.clone().multiplyScalar(c).add(a)}
|
|
|
+function g(a,b,c){var d=a.x-b.x;var e=a.y-b.y;var f=c.x-a.x;var g=c.y-a.y,h=d*d+e*e;if(Math.abs(d*g-e*f)>Number.EPSILON){var l=Math.sqrt(h),m=Math.sqrt(f*f+g*g);h=b.x-e/l;b=b.y+d/l;g=((c.x-g/m-h)*g-(c.y+f/m-b)*f)/(d*g-e*f);f=h+d*g-a.x;d=b+e*g-a.y;e=f*f+d*d;if(2>=e)return new w(f,d);e=Math.sqrt(e/2)}else a=!1,d>Number.EPSILON?f>Number.EPSILON&&(a=!0):d<-Number.EPSILON?f<-Number.EPSILON&&(a=!0):Math.sign(e)===Math.sign(g)&&(a=!0),a?(f=-e,e=Math.sqrt(h)):(f=d,d=e,e=Math.sqrt(h/2));return new w(f/e,d/
|
|
|
+e)}function h(a,b){for(var c=a.length;0<=--c;){var f=c,g=c-1;0>g&&(g=a.length-1);for(var h=0,l=x+2*B;h<l;h++){var m=T*h,k=T*(h+1),t=b+g+m,p=b+g+k;k=b+f+k;r(b+f+m);r(t);r(k);r(t);r(p);r(k);m=e.length/3;m=D.generateSideWallUV(d,e,m-6,m-3,m-2,m-1);u(m[0]);u(m[1]);u(m[3]);u(m[1]);u(m[2]);u(m[3])}}}function l(a,b,c){A.push(a);A.push(b);A.push(c)}function k(a,b,c){r(a);r(b);r(c);a=e.length/3;a=D.generateTopUV(d,e,a-3,a-2,a-1);u(a[0]);u(a[1]);u(a[2])}function r(a){e.push(A[3*a]);e.push(A[3*a+1]);e.push(A[3*
|
|
|
+a+2])}function u(a){f.push(a.x);f.push(a.y)}var A=[],z=void 0!==b.curveSegments?b.curveSegments:12,x=void 0!==b.steps?b.steps:1,y=void 0!==b.depth?b.depth:100,ma=void 0!==b.bevelEnabled?b.bevelEnabled:!0,N=void 0!==b.bevelThickness?b.bevelThickness:6,C=void 0!==b.bevelSize?b.bevelSize:N-2,P=void 0!==b.bevelOffset?b.bevelOffset:0,B=void 0!==b.bevelSegments?b.bevelSegments:3,O=b.extrudePath,D=void 0!==b.UVGenerator?b.UVGenerator:Fk;void 0!==b.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),
|
|
|
+y=b.amount);var E=!1;if(O){var F=O.getSpacedPoints(x);E=!0;ma=!1;var G=O.computeFrenetFrames(x,!1);var J=new n;var K=new n;var H=new n}ma||(P=C=N=B=0);a=a.extractPoints(z);O=a.shape;var M=a.holes;if(!qb.isClockWise(O))for(O=O.reverse(),a=0,z=M.length;a<z;a++){var L=M[a];qb.isClockWise(L)&&(M[a]=L.reverse())}var Q=qb.triangulateShape(O,M),S=O;a=0;for(z=M.length;a<z;a++)O=O.concat(M[a]);var T=O.length,aa=Q.length;a=[];z=0;L=S.length;for(var ca=L-1,Y=z+1;z<L;z++,ca++,Y++)ca===L&&(ca=0),Y===L&&(Y=0),
|
|
|
+a[z]=g(S[z],S[ca],S[Y]);z=[];L=a.concat();Y=0;for(var R=M.length;Y<R;Y++){var X=M[Y];ca=[];for(var U=0,W=X.length,ba=W-1,Z=U+1;U<W;U++,ba++,Z++)ba===W&&(ba=0),Z===W&&(Z=0),ca[U]=g(X[U],X[ba],X[Z]);z.push(ca);L=L.concat(ca)}for(Y=0;Y<B;Y++){ca=Y/B;R=N*Math.cos(ca*Math.PI/2);X=C*Math.sin(ca*Math.PI/2)+P;ca=0;for(U=S.length;ca<U;ca++)W=c(S[ca],a[ca],X),l(W.x,W.y,-R);U=0;for(W=M.length;U<W;U++){ba=M[U];ca=z[U];Z=0;for(var ea=ba.length;Z<ea;Z++){var da=c(ba[Z],ca[Z],X);l(da.x,da.y,-R)}}}ca=C+P;for(Y=0;Y<
|
|
|
+T;Y++)R=ma?c(O[Y],L[Y],ca):O[Y],E?(K.copy(G.normals[0]).multiplyScalar(R.x),J.copy(G.binormals[0]).multiplyScalar(R.y),H.copy(F[0]).add(K).add(J),l(H.x,H.y,H.z)):l(R.x,R.y,0);for(Y=1;Y<=x;Y++)for(R=0;R<T;R++)X=ma?c(O[R],L[R],ca):O[R],E?(K.copy(G.normals[Y]).multiplyScalar(X.x),J.copy(G.binormals[Y]).multiplyScalar(X.y),H.copy(F[Y]).add(K).add(J),l(H.x,H.y,H.z)):l(X.x,X.y,y/x*Y);for(G=B-1;0<=G;G--){K=G/B;J=N*Math.cos(K*Math.PI/2);K=C*Math.sin(K*Math.PI/2)+P;H=0;for(O=S.length;H<O;H++)L=c(S[H],a[H],
|
|
|
+K),l(L.x,L.y,y+J);H=0;for(O=M.length;H<O;H++)for(L=M[H],ca=z[H],Y=0,R=L.length;Y<R;Y++)X=c(L[Y],ca[Y],K),E?l(X.x,X.y+F[x-1].y,F[x-1].x+J):l(X.x,X.y,y+J)}(function(){var a=e.length/3;if(ma){for(var b=0*T,c=0;c<aa;c++){var f=Q[c];k(f[2]+b,f[1]+b,f[0]+b)}b=T*(x+2*B);for(c=0;c<aa;c++)f=Q[c],k(f[0]+b,f[1]+b,f[2]+b)}else{for(b=0;b<aa;b++)c=Q[b],k(c[2],c[1],c[0]);for(b=0;b<aa;b++)c=Q[b],k(c[0]+T*x,c[1]+T*x,c[2]+T*x)}d.addGroup(a,e.length/3-a,0)})();(function(){var a=e.length/3,b=0;h(S,b);b+=S.length;for(var c=
|
|
|
+0,f=M.length;c<f;c++){var g=M[c];h(g,b);b+=g.length}d.addGroup(a,e.length/3-a,1)})()}F.call(this);this.type="ExtrudeBufferGeometry";this.parameters={shapes:a,options:b};a=Array.isArray(a)?a:[a];for(var d=this,e=[],f=[],g=0,h=a.length;g<h;g++)c(a[g]);this.setAttribute("position",new B(e,3));this.setAttribute("uv",new B(f,2));this.computeVertexNormals()}function di(a,b,c){c.shapes=[];if(Array.isArray(a))for(var d=0,e=a.length;d<e;d++)c.shapes.push(a[d].uuid);else c.shapes.push(a.uuid);void 0!==b.extrudePath&&
|
|
|
+(c.options.extrudePath=b.extrudePath.toJSON());return c}function be(a,b){H.call(this);this.type="TextGeometry";this.parameters={text:a,parameters:b};this.fromBufferGeometry(new Vc(a,b));this.mergeVertices()}function Vc(a,b){b=b||{};var c=b.font;if(!c||!c.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new H;a=c.generateShapes(a,b.size);b.depth=void 0!==b.height?b.height:50;void 0===b.bevelThickness&&(b.bevelThickness=10);void 0===b.bevelSize&&(b.bevelSize=
|
|
|
+8);void 0===b.bevelEnabled&&(b.bevelEnabled=!1);gb.call(this,a,b);this.type="TextBufferGeometry"}function ce(a,b,c,d,e,f,g){H.call(this);this.type="SphereGeometry";this.parameters={radius:a,widthSegments:b,heightSegments:c,phiStart:d,phiLength:e,thetaStart:f,thetaLength:g};this.fromBufferGeometry(new dc(a,b,c,d,e,f,g));this.mergeVertices()}function dc(a,b,c,d,e,f,g){F.call(this);this.type="SphereBufferGeometry";this.parameters={radius:a,widthSegments:b,heightSegments:c,phiStart:d,phiLength:e,thetaStart:f,
|
|
|
+thetaLength:g};a=a||1;b=Math.max(3,Math.floor(b)||8);c=Math.max(2,Math.floor(c)||6);d=void 0!==d?d:0;e=void 0!==e?e:2*Math.PI;f=void 0!==f?f:0;g=void 0!==g?g:Math.PI;for(var h=Math.min(f+g,Math.PI),l=0,m=[],k=new n,p=new n,v=[],q=[],r=[],u=[],A=0;A<=c;A++){var z=[],x=A/c,w=0;0==A&&0==f?w=.5/b:A==c&&h==Math.PI&&(w=-.5/b);for(var y=0;y<=b;y++){var N=y/b;k.x=-a*Math.cos(d+N*e)*Math.sin(f+x*g);k.y=a*Math.cos(f+x*g);k.z=a*Math.sin(d+N*e)*Math.sin(f+x*g);q.push(k.x,k.y,k.z);p.copy(k).normalize();r.push(p.x,
|
|
|
+p.y,p.z);u.push(N+w,1-x);z.push(l++)}m.push(z)}for(a=0;a<c;a++)for(d=0;d<b;d++)e=m[a][d+1],g=m[a][d],l=m[a+1][d],k=m[a+1][d+1],(0!==a||0<f)&&v.push(e,g,k),(a!==c-1||h<Math.PI)&&v.push(g,l,k);this.setIndex(v);this.setAttribute("position",new B(q,3));this.setAttribute("normal",new B(r,3));this.setAttribute("uv",new B(u,2))}function de(a,b,c,d,e,f){H.call(this);this.type="RingGeometry";this.parameters={innerRadius:a,outerRadius:b,thetaSegments:c,phiSegments:d,thetaStart:e,thetaLength:f};this.fromBufferGeometry(new Wc(a,
|
|
|
+b,c,d,e,f));this.mergeVertices()}function Wc(a,b,c,d,e,f){F.call(this);this.type="RingBufferGeometry";this.parameters={innerRadius:a,outerRadius:b,thetaSegments:c,phiSegments:d,thetaStart:e,thetaLength:f};a=a||.5;b=b||1;e=void 0!==e?e:0;f=void 0!==f?f:2*Math.PI;c=void 0!==c?Math.max(3,c):8;d=void 0!==d?Math.max(1,d):1;var g=[],h=[],l=[],m=[],k=a;a=(b-a)/d;for(var p=new n,v=new w,q=0;q<=d;q++){for(var r=0;r<=c;r++){var u=e+r/c*f;p.x=k*Math.cos(u);p.y=k*Math.sin(u);h.push(p.x,p.y,p.z);l.push(0,0,1);
|
|
|
+v.x=(p.x/b+1)/2;v.y=(p.y/b+1)/2;m.push(v.x,v.y)}k+=a}for(b=0;b<d;b++)for(e=b*(c+1),f=0;f<c;f++)k=f+e,a=k+c+1,p=k+c+2,v=k+1,g.push(k,a,v),g.push(a,p,v);this.setIndex(g);this.setAttribute("position",new B(h,3));this.setAttribute("normal",new B(l,3));this.setAttribute("uv",new B(m,2))}function ee(a,b,c,d){H.call(this);this.type="LatheGeometry";this.parameters={points:a,segments:b,phiStart:c,phiLength:d};this.fromBufferGeometry(new Xc(a,b,c,d));this.mergeVertices()}function Xc(a,b,c,d){F.call(this);this.type=
|
|
|
+"LatheBufferGeometry";this.parameters={points:a,segments:b,phiStart:c,phiLength:d};b=Math.floor(b)||12;c=c||0;d=d||2*Math.PI;d=L.clamp(d,0,2*Math.PI);for(var e=[],f=[],g=[],h=1/b,l=new n,m=new w,k=0;k<=b;k++){var p=c+k*h*d,v=Math.sin(p);p=Math.cos(p);for(var q=0;q<=a.length-1;q++)l.x=a[q].x*v,l.y=a[q].y,l.z=a[q].x*p,f.push(l.x,l.y,l.z),m.x=k/b,m.y=q/(a.length-1),g.push(m.x,m.y)}for(c=0;c<b;c++)for(h=0;h<a.length-1;h++)l=h+c*a.length,m=l+a.length,k=l+a.length+1,v=l+1,e.push(l,m,v),e.push(m,k,v);this.setIndex(e);
|
|
|
+this.setAttribute("position",new B(f,3));this.setAttribute("uv",new B(g,2));this.computeVertexNormals();if(d===2*Math.PI)for(d=this.attributes.normal.array,e=new n,f=new n,g=new n,b=b*a.length*3,h=c=0;c<a.length;c++,h+=3)e.x=d[h+0],e.y=d[h+1],e.z=d[h+2],f.x=d[b+h+0],f.y=d[b+h+1],f.z=d[b+h+2],g.addVectors(e,f).normalize(),d[h+0]=d[b+h+0]=g.x,d[h+1]=d[b+h+1]=g.y,d[h+2]=d[b+h+2]=g.z}function ec(a,b){H.call(this);this.type="ShapeGeometry";"object"===typeof b&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),
|
|
|
+b=b.curveSegments);this.parameters={shapes:a,curveSegments:b};this.fromBufferGeometry(new fc(a,b));this.mergeVertices()}function fc(a,b){function c(a){var c=e.length/3,h=a.extractPoints(b);a=h.shape;var m=h.holes;!1===qb.isClockWise(a)&&(a=a.reverse());h=0;for(var k=m.length;h<k;h++){var t=m[h];!0===qb.isClockWise(t)&&(m[h]=t.reverse())}h=qb.triangulateShape(a,m);k=0;for(t=m.length;k<t;k++)a=a.concat(m[k]);m=0;for(k=a.length;m<k;m++)t=a[m],e.push(t.x,t.y,0),f.push(0,0,1),g.push(t.x,t.y);a=0;for(m=
|
|
|
+h.length;a<m;a++)k=h[a],d.push(k[0]+c,k[1]+c,k[2]+c),l+=3}F.call(this);this.type="ShapeBufferGeometry";this.parameters={shapes:a,curveSegments:b};b=b||12;var d=[],e=[],f=[],g=[],h=0,l=0;if(!1===Array.isArray(a))c(a);else for(var m=0;m<a.length;m++)c(a[m]),this.addGroup(h,l,m),h+=l,l=0;this.setIndex(d);this.setAttribute("position",new B(e,3));this.setAttribute("normal",new B(f,3));this.setAttribute("uv",new B(g,2))}function ei(a,b){b.shapes=[];if(Array.isArray(a))for(var c=0,d=a.length;c<d;c++)b.shapes.push(a[c].uuid);
|
|
|
+else b.shapes.push(a.uuid);return b}function Yc(a,b){F.call(this);this.type="EdgesGeometry";this.parameters={thresholdAngle:b};var c=[];b=Math.cos(L.DEG2RAD*(void 0!==b?b:1));var d=[0,0],e={},f=["a","b","c"];if(a.isBufferGeometry){var g=new H;g.fromBufferGeometry(a)}else g=a.clone();g.mergeVertices();g.computeFaceNormals();a=g.vertices;g=g.faces;for(var h=0,l=g.length;h<l;h++)for(var m=g[h],k=0;3>k;k++){var p=m[f[k]];var n=m[f[(k+1)%3]];d[0]=Math.min(p,n);d[1]=Math.max(p,n);p=d[0]+","+d[1];void 0===
|
|
|
+e[p]?e[p]={index1:d[0],index2:d[1],face1:h,face2:void 0}:e[p].face2=h}for(p in e)if(d=e[p],void 0===d.face2||g[d.face1].normal.dot(g[d.face2].normal)<=b)f=a[d.index1],c.push(f.x,f.y,f.z),f=a[d.index2],c.push(f.x,f.y,f.z);this.setAttribute("position",new B(c,3))}function gc(a,b,c,d,e,f,g,h){H.call(this);this.type="CylinderGeometry";this.parameters={radiusTop:a,radiusBottom:b,height:c,radialSegments:d,heightSegments:e,openEnded:f,thetaStart:g,thetaLength:h};this.fromBufferGeometry(new rb(a,b,c,d,e,
|
|
|
+f,g,h));this.mergeVertices()}function rb(a,b,c,d,e,f,g,h){function l(c){var e,f=new w,l=new n,t=0,u=!0===c?a:b,x=!0===c?1:-1;var y=r;for(e=1;e<=d;e++)p.push(0,A*x,0),v.push(0,x,0),q.push(.5,.5),r++;e=r;for(var B=0;B<=d;B++){var E=B/d*h+g,D=Math.cos(E);E=Math.sin(E);l.x=u*E;l.y=A*x;l.z=u*D;p.push(l.x,l.y,l.z);v.push(0,x,0);f.x=.5*D+.5;f.y=.5*E*x+.5;q.push(f.x,f.y);r++}for(f=0;f<d;f++)l=y+f,u=e+f,!0===c?k.push(u,u+1,l):k.push(u+1,u,l),t+=3;m.addGroup(z,t,!0===c?1:2);z+=t}F.call(this);this.type="CylinderBufferGeometry";
|
|
|
+this.parameters={radiusTop:a,radiusBottom:b,height:c,radialSegments:d,heightSegments:e,openEnded:f,thetaStart:g,thetaLength:h};var m=this;a=void 0!==a?a:1;b=void 0!==b?b:1;c=c||1;d=Math.floor(d)||8;e=Math.floor(e)||1;f=void 0!==f?f:!1;g=void 0!==g?g:0;h=void 0!==h?h:2*Math.PI;var k=[],p=[],v=[],q=[],r=0,u=[],A=c/2,z=0;(function(){for(var f=new n,l=new n,t=0,w=(b-a)/c,C=0;C<=e;C++){for(var y=[],B=C/e,E=B*(b-a)+a,D=0;D<=d;D++){var F=D/d,G=F*h+g,H=Math.sin(G);G=Math.cos(G);l.x=E*H;l.y=-B*c+A;l.z=E*G;
|
|
|
+p.push(l.x,l.y,l.z);f.set(H,w,G).normalize();v.push(f.x,f.y,f.z);q.push(F,1-B);y.push(r++)}u.push(y)}for(f=0;f<d;f++)for(l=0;l<e;l++)w=u[l+1][f],C=u[l+1][f+1],y=u[l][f+1],k.push(u[l][f],w,y),k.push(w,C,y),t+=6;m.addGroup(z,t,0);z+=t})();!1===f&&(0<a&&l(!0),0<b&&l(!1));this.setIndex(k);this.setAttribute("position",new B(p,3));this.setAttribute("normal",new B(v,3));this.setAttribute("uv",new B(q,2))}function fe(a,b,c,d,e,f,g){gc.call(this,0,a,b,c,d,e,f,g);this.type="ConeGeometry";this.parameters={radius:a,
|
|
|
+height:b,radialSegments:c,heightSegments:d,openEnded:e,thetaStart:f,thetaLength:g}}function ge(a,b,c,d,e,f,g){rb.call(this,0,a,b,c,d,e,f,g);this.type="ConeBufferGeometry";this.parameters={radius:a,height:b,radialSegments:c,heightSegments:d,openEnded:e,thetaStart:f,thetaLength:g}}function he(a,b,c,d){H.call(this);this.type="CircleGeometry";this.parameters={radius:a,segments:b,thetaStart:c,thetaLength:d};this.fromBufferGeometry(new Zc(a,b,c,d));this.mergeVertices()}function Zc(a,b,c,d){F.call(this);
|
|
|
+this.type="CircleBufferGeometry";this.parameters={radius:a,segments:b,thetaStart:c,thetaLength:d};a=a||1;b=void 0!==b?Math.max(3,b):8;c=void 0!==c?c:0;d=void 0!==d?d:2*Math.PI;var e=[],f=[],g=[],h=[],l=new n,m=new w;f.push(0,0,0);g.push(0,0,1);h.push(.5,.5);for(var k=0,p=3;k<=b;k++,p+=3){var v=c+k/b*d;l.x=a*Math.cos(v);l.y=a*Math.sin(v);f.push(l.x,l.y,l.z);g.push(0,0,1);m.x=(f[p]/a+1)/2;m.y=(f[p+1]/a+1)/2;h.push(m.x,m.y)}for(a=1;a<=b;a++)e.push(a,a+1,0);this.setIndex(e);this.setAttribute("position",
|
|
|
+new B(f,3));this.setAttribute("normal",new B(g,3));this.setAttribute("uv",new B(h,2))}function hc(a){K.call(this);this.type="ShadowMaterial";this.color=new D(0);this.transparent=!0;this.setValues(a)}function sb(a){Aa.call(this,a);this.type="RawShaderMaterial"}function hb(a){K.call(this);this.defines={STANDARD:""};this.type="MeshStandardMaterial";this.color=new D(16777215);this.roughness=1;this.metalness=0;this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=
|
|
|
+new D(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.envMap=this.alphaMap=this.metalnessMap=this.roughnessMap=null;this.envMapIntensity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.vertexTangents=this.morphNormals=this.morphTargets=this.skinning=
|
|
|
+!1;this.setValues(a)}function ic(a){hb.call(this);this.defines={STANDARD:"",PHYSICAL:""};this.type="MeshPhysicalMaterial";this.clearcoat=0;this.clearcoatMap=null;this.clearcoatRoughness=0;this.clearcoatRoughnessMap=null;this.clearcoatNormalScale=new w(1,1);this.clearcoatNormalMap=null;this.reflectivity=.5;this.sheen=null;this.transparency=0;this.setValues(a)}function Lb(a){K.call(this);this.type="MeshPhongMaterial";this.color=new D(16777215);this.specular=new D(1118481);this.shininess=30;this.lightMap=
|
|
|
+this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.envMap=this.alphaMap=this.specularMap=null;this.combine=0;this.reflectivity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap=
|
|
|
+"round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function jc(a){K.call(this);this.defines={TOON:""};this.type="MeshToonMaterial";this.color=new D(16777215);this.specular=new D(1118481);this.shininess=30;this.lightMap=this.gradientMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,
|
|
|
+1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.alphaMap=this.specularMap=null;this.wireframe=!1;this.wireframeLinewidth=1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function kc(a){K.call(this);this.type="MeshNormalMaterial";this.bumpMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=
|
|
|
+0;this.wireframe=!1;this.wireframeLinewidth=1;this.morphNormals=this.morphTargets=this.skinning=this.fog=!1;this.setValues(a)}function lc(a){K.call(this);this.type="MeshLambertMaterial";this.color=new D(16777215);this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new D(0);this.emissiveIntensity=1;this.envMap=this.alphaMap=this.specularMap=this.emissiveMap=null;this.combine=0;this.reflectivity=1;this.refractionRatio=.98;this.wireframe=!1;this.wireframeLinewidth=
|
|
|
+1;this.wireframeLinejoin=this.wireframeLinecap="round";this.morphNormals=this.morphTargets=this.skinning=!1;this.setValues(a)}function mc(a){K.call(this);this.defines={MATCAP:""};this.type="MeshMatcapMaterial";this.color=new D(16777215);this.bumpMap=this.map=this.matcap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new w(1,1);this.displacementMap=null;this.displacementScale=1;this.displacementBias=0;this.alphaMap=null;this.morphNormals=this.morphTargets=this.skinning=
|
|
|
+!1;this.setValues(a)}function nc(a){ja.call(this);this.type="LineDashedMaterial";this.scale=1;this.dashSize=3;this.gapSize=1;this.setValues(a)}function Ka(a,b,c,d){this.parameterPositions=a;this._cachedIndex=0;this.resultBuffer=void 0!==d?d:new b.constructor(c);this.sampleValues=b;this.valueSize=c}function Ye(a,b,c,d){Ka.call(this,a,b,c,d);this._offsetNext=this._weightNext=this._offsetPrev=this._weightPrev=-0}function ie(a,b,c,d){Ka.call(this,a,b,c,d)}function Ze(a,b,c,d){Ka.call(this,a,b,c,d)}function sa(a,
|
|
|
+b,c,d){if(void 0===a)throw Error("THREE.KeyframeTrack: track name is undefined");if(void 0===b||0===b.length)throw Error("THREE.KeyframeTrack: no keyframes in track named "+a);this.name=a;this.times=Z.convertArray(b,this.TimeBufferType);this.values=Z.convertArray(c,this.ValueBufferType);this.setInterpolation(d||this.DefaultInterpolation)}function $e(a,b,c){sa.call(this,a,b,c)}function af(a,b,c,d){sa.call(this,a,b,c,d)}function $c(a,b,c,d){sa.call(this,a,b,c,d)}function bf(a,b,c,d){Ka.call(this,a,
|
|
|
+b,c,d)}function je(a,b,c,d){sa.call(this,a,b,c,d)}function cf(a,b,c,d){sa.call(this,a,b,c,d)}function ad(a,b,c,d){sa.call(this,a,b,c,d)}function Qa(a,b,c,d){this.name=a;this.tracks=c;this.duration=void 0!==b?b:-1;this.blendMode=void 0!==d?d:2500;this.uuid=L.generateUUID();0>this.duration&&this.resetDuration()}function Gk(a){switch(a.toLowerCase()){case "scalar":case "double":case "float":case "number":case "integer":return $c;case "vector":case "vector2":case "vector3":case "vector4":return ad;case "color":return af;
|
|
|
+case "quaternion":return je;case "bool":case "boolean":return $e;case "string":return cf}throw Error("THREE.KeyframeTrack: Unsupported typeName: "+a);}function Hk(a){if(void 0===a.type)throw Error("THREE.KeyframeTrack: track type undefined, can not parse");var b=Gk(a.type);if(void 0===a.times){var c=[],d=[];Z.flattenJSON(a.keys,c,d,"value");a.times=c;a.values=d}return void 0!==b.parse?b.parse(a):new b(a.name,a.times,a.values,a.interpolation)}function tg(a,b,c){var d=this,e=!1,f=0,g=0,h=void 0,l=[];
|
|
|
+this.onStart=void 0;this.onLoad=a;this.onProgress=b;this.onError=c;this.itemStart=function(a){g++;if(!1===e&&void 0!==d.onStart)d.onStart(a,f,g);e=!0};this.itemEnd=function(a){f++;if(void 0!==d.onProgress)d.onProgress(a,f,g);if(f===g&&(e=!1,void 0!==d.onLoad))d.onLoad()};this.itemError=function(a){if(void 0!==d.onError)d.onError(a)};this.resolveURL=function(a){return h?h(a):a};this.setURLModifier=function(a){h=a;return this};this.addHandler=function(a,b){l.push(a,b);return this};this.removeHandler=
|
|
|
+function(a){a=l.indexOf(a);-1!==a&&l.splice(a,2);return this};this.getHandler=function(a){for(var b=0,c=l.length;b<c;b+=2){var d=l[b],e=l[b+1];d.global&&(d.lastIndex=0);if(d.test(a))return e}return null}}function S(a){this.manager=void 0!==a?a:fi;this.crossOrigin="anonymous";this.resourcePath=this.path="";this.requestHeader={}}function Ra(a){S.call(this,a)}function ug(a){S.call(this,a)}function vg(a){S.call(this,a)}function df(a){S.call(this,a)}function bd(a){S.call(this,a)}function ef(a){S.call(this,
|
|
|
+a)}function ff(a){S.call(this,a)}function J(){this.type="Curve";this.arcLengthDivisions=200}function La(a,b,c,d,e,f,g,h){J.call(this);this.type="EllipseCurve";this.aX=a||0;this.aY=b||0;this.xRadius=c||1;this.yRadius=d||1;this.aStartAngle=e||0;this.aEndAngle=f||2*Math.PI;this.aClockwise=g||!1;this.aRotation=h||0}function cd(a,b,c,d,e,f){La.call(this,a,b,c,c,d,e,f);this.type="ArcCurve"}function wg(){var a=0,b=0,c=0,d=0;return{initCatmullRom:function(e,f,g,h,l){e=l*(g-e);h=l*(h-f);a=f;b=e;c=-3*f+3*g-
|
|
|
+2*e-h;d=2*f-2*g+e+h},initNonuniformCatmullRom:function(e,f,g,h,l,m,k){e=((f-e)/l-(g-e)/(l+m)+(g-f)/m)*m;h=((g-f)/m-(h-f)/(m+k)+(h-g)/k)*m;a=f;b=e;c=-3*f+3*g-2*e-h;d=2*f-2*g+e+h},calc:function(e){var f=e*e;return a+b*e+c*f+d*f*e}}}function pa(a,b,c,d){J.call(this);this.type="CatmullRomCurve3";this.points=a||[];this.closed=b||!1;this.curveType=c||"centripetal";this.tension=d||.5}function gi(a,b,c,d,e){b=.5*(d-b);e=.5*(e-c);var f=a*a;return(2*c-2*d+b+e)*a*f+(-3*c+3*d-2*b-e)*f+b*a+c}function ke(a,b,c,
|
|
|
+d){var e=1-a;return e*e*b+2*(1-a)*a*c+a*a*d}function le(a,b,c,d,e){var f=1-a,g=1-a;return f*f*f*b+3*g*g*a*c+3*(1-a)*a*a*d+a*a*a*e}function Xa(a,b,c,d){J.call(this);this.type="CubicBezierCurve";this.v0=a||new w;this.v1=b||new w;this.v2=c||new w;this.v3=d||new w}function ib(a,b,c,d){J.call(this);this.type="CubicBezierCurve3";this.v0=a||new n;this.v1=b||new n;this.v2=c||new n;this.v3=d||new n}function Ca(a,b){J.call(this);this.type="LineCurve";this.v1=a||new w;this.v2=b||new w}function Ya(a,b){J.call(this);
|
|
|
+this.type="LineCurve3";this.v1=a||new n;this.v2=b||new n}function Za(a,b,c){J.call(this);this.type="QuadraticBezierCurve";this.v0=a||new w;this.v1=b||new w;this.v2=c||new w}function jb(a,b,c){J.call(this);this.type="QuadraticBezierCurve3";this.v0=a||new n;this.v1=b||new n;this.v2=c||new n}function $a(a){J.call(this);this.type="SplineCurve";this.points=a||[]}function tb(){J.call(this);this.type="CurvePath";this.curves=[];this.autoClose=!1}function ab(a){tb.call(this);this.type="Path";this.currentPoint=
|
|
|
+new w;a&&this.setFromPoints(a)}function Mb(a){ab.call(this,a);this.uuid=L.generateUUID();this.type="Shape";this.holes=[]}function ha(a,b){y.call(this);this.type="Light";this.color=new D(a);this.intensity=void 0!==b?b:1;this.receiveShadow=void 0}function gf(a,b,c){ha.call(this,a,c);this.type="HemisphereLight";this.castShadow=void 0;this.position.copy(y.DefaultUp);this.updateMatrix();this.groundColor=new D(b)}function kb(a){this.camera=a;this.bias=0;this.radius=1;this.mapSize=new w(512,512);this.mapPass=
|
|
|
+this.map=null;this.matrix=new M;this._frustum=new Ec;this._frameExtents=new w(1,1);this._viewportCount=1;this._viewports=[new ea(0,0,1,1)]}function hf(){kb.call(this,new T(50,1,.5,500))}function jf(a,b,c,d,e,f){ha.call(this,a,b);this.type="SpotLight";this.position.copy(y.DefaultUp);this.updateMatrix();this.target=new y;Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(a){this.intensity=a/Math.PI}});this.distance=void 0!==c?c:0;this.angle=void 0!==d?d:Math.PI/
|
|
|
+3;this.penumbra=void 0!==e?e:0;this.decay=void 0!==f?f:1;this.shadow=new hf}function xg(){kb.call(this,new T(90,1,.5,500));this._frameExtents=new w(4,2);this._viewportCount=6;this._viewports=[new ea(2,1,1,1),new ea(0,1,1,1),new ea(3,1,1,1),new ea(1,1,1,1),new ea(3,0,1,1),new ea(1,0,1,1)];this._cubeDirections=[new n(1,0,0),new n(-1,0,0),new n(0,0,1),new n(0,0,-1),new n(0,1,0),new n(0,-1,0)];this._cubeUps=[new n(0,1,0),new n(0,1,0),new n(0,1,0),new n(0,1,0),new n(0,0,1),new n(0,0,-1)]}function kf(a,
|
|
|
+b,c,d){ha.call(this,a,b);this.type="PointLight";Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(a){this.intensity=a/(4*Math.PI)}});this.distance=void 0!==c?c:0;this.decay=void 0!==d?d:1;this.shadow=new xg}function dd(a,b,c,d,e,f){eb.call(this);this.type="OrthographicCamera";this.zoom=1;this.view=null;this.left=void 0!==a?a:-1;this.right=void 0!==b?b:1;this.top=void 0!==c?c:1;this.bottom=void 0!==d?d:-1;this.near=void 0!==e?e:.1;this.far=void 0!==f?
|
|
|
+f:2E3;this.updateProjectionMatrix()}function lf(){kb.call(this,new dd(-5,5,5,-5,.5,500))}function mf(a,b){ha.call(this,a,b);this.type="DirectionalLight";this.position.copy(y.DefaultUp);this.updateMatrix();this.target=new y;this.shadow=new lf}function nf(a,b){ha.call(this,a,b);this.type="AmbientLight";this.castShadow=void 0}function of(a,b,c,d){ha.call(this,a,b);this.type="RectAreaLight";this.width=void 0!==c?c:10;this.height=void 0!==d?d:10}function pf(){this.coefficients=[];for(var a=0;9>a;a++)this.coefficients.push(new n)}
|
|
|
+function Sa(a,b){ha.call(this,void 0,b);this.type="LightProbe";this.sh=void 0!==a?a:new pf}function qf(a){S.call(this,a);this.textures={}}function me(){F.call(this);this.type="InstancedBufferGeometry";this.instanceCount=Infinity}function rf(a,b,c,d){"number"===typeof c&&(d=c,c=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument."));G.call(this,a,b,c);this.meshPerAttribute=d||1}function sf(a){S.call(this,a)}function tf(a){S.call(this,a)}function yg(a){"undefined"===
|
|
|
+typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported.");"undefined"===typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported.");S.call(this,a);this.options=void 0}function zg(){this.type="ShapePath";this.color=new D;this.subPaths=[];this.currentPath=null}function Ag(a){this.type="Font";this.data=a}function Bg(a){S.call(this,a)}function uf(a){S.call(this,a)}function Cg(a,b,c){Sa.call(this,void 0,c);a=(new D).set(a);c=(new D).set(b);
|
|
|
+b=new n(a.r,a.g,a.b);a=new n(c.r,c.g,c.b);c=Math.sqrt(Math.PI);var d=c*Math.sqrt(.75);this.sh.coefficients[0].copy(b).add(a).multiplyScalar(c);this.sh.coefficients[1].copy(b).sub(a).multiplyScalar(d)}function Dg(a,b){Sa.call(this,void 0,b);a=(new D).set(a);this.sh.coefficients[0].set(a.r,a.g,a.b).multiplyScalar(2*Math.sqrt(Math.PI))}function hi(){this.type="StereoCamera";this.aspect=1;this.eyeSep=.064;this.cameraL=new T;this.cameraL.layers.enable(1);this.cameraL.matrixAutoUpdate=!1;this.cameraR=new T;
|
|
|
+this.cameraR.layers.enable(2);this.cameraR.matrixAutoUpdate=!1;this._cache={focus:null,fov:null,aspect:null,near:null,far:null,zoom:null,eyeSep:null}}function Eg(a){this.autoStart=void 0!==a?a:!0;this.elapsedTime=this.oldTime=this.startTime=0;this.running=!1}function Fg(){y.call(this);this.type="AudioListener";this.context=Gg.getContext();this.gain=this.context.createGain();this.gain.connect(this.context.destination);this.filter=null;this.timeDelta=0;this._clock=new Eg}function ed(a){y.call(this);
|
|
|
+this.type="Audio";this.listener=a;this.context=a.context;this.gain=this.context.createGain();this.gain.connect(a.getInput());this.autoplay=!1;this.buffer=null;this.detune=0;this.loop=!1;this.offset=this.loopEnd=this.loopStart=0;this.duration=void 0;this.playbackRate=1;this.isPlaying=!1;this.hasPlaybackControl=!0;this.sourceType="empty";this._progress=this._startedAt=0;this.filters=[]}function Hg(a){ed.call(this,a);this.panner=this.context.createPanner();this.panner.panningModel="HRTF";this.panner.connect(this.gain)}
|
|
|
+function Ig(a,b){this.analyser=a.context.createAnalyser();this.analyser.fftSize=void 0!==b?b:2048;this.data=new Uint8Array(this.analyser.frequencyBinCount);a.getOutput().connect(this.analyser)}function Jg(a,b,c){this.binding=a;this.valueSize=c;switch(b){case "quaternion":a=this._slerp;b=this._slerpAdditive;var d=this._setAdditiveIdentityQuaternion;this.buffer=new Float64Array(6*c);this._workIndex=5;break;case "string":case "bool":b=a=this._select;d=this._setAdditiveIdentityOther;this.buffer=Array(5*
|
|
|
+c);break;default:a=this._lerp,b=this._lerpAdditive,d=this._setAdditiveIdentityNumeric,this.buffer=new Float64Array(5*c)}this._mixBufferRegion=a;this._mixBufferRegionAdditive=b;this._setIdentity=d;this._origIndex=3;this._addIndex=4;this.referenceCount=this.useCount=this.cumulativeWeightAdditive=this.cumulativeWeight=0}function ii(a,b,c){c=c||ya.parseTrackName(b);this._targetGroup=a;this._bindings=a.subscribe_(b,c)}function ya(a,b,c){this.path=b;this.parsedPath=c||ya.parseTrackName(b);this.node=ya.findNode(a,
|
|
|
+this.parsedPath.nodeName)||a;this.rootNode=a}function ji(){this.uuid=L.generateUUID();this._objects=Array.prototype.slice.call(arguments);this.nCachedObjects_=0;var a={};this._indicesByUUID=a;for(var b=0,c=arguments.length;b!==c;++b)a[arguments[b].uuid]=b;this._paths=[];this._parsedPaths=[];this._bindings=[];this._bindingsIndicesByPath={};var d=this;this.stats={objects:{get total(){return d._objects.length},get inUse(){return this.total-d.nCachedObjects_}},get bindingsPerObject(){return d._bindings.length}}}
|
|
|
+function ki(a,b,c,d){this._mixer=a;this._clip=b;this._localRoot=c||null;this.blendMode=d||b.blendMode;a=b.tracks;b=a.length;c=Array(b);d={endingStart:2400,endingEnd:2400};for(var e=0;e!==b;++e){var f=a[e].createInterpolant(null);c[e]=f;f.settings=d}this._interpolantSettings=d;this._interpolants=c;this._propertyBindings=Array(b);this._weightInterpolant=this._timeScaleInterpolant=this._byClipCacheIndex=this._cacheIndex=null;this.loop=2201;this._loopCount=-1;this._startTime=null;this.time=0;this._effectiveWeight=
|
|
|
+this.weight=this._effectiveTimeScale=this.timeScale=1;this.repetitions=Infinity;this.paused=!1;this.enabled=!0;this.clampWhenFinished=!1;this.zeroSlopeAtEnd=this.zeroSlopeAtStart=!0}function Kg(a){this._root=a;this._initMemoryManager();this.time=this._accuIndex=0;this.timeScale=1}function vf(a,b){"string"===typeof a&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),a=b);this.value=a}function Lg(a,b,c){Ia.call(this,a,b);this.meshPerAttribute=c||1}function Mg(a,b,c,d){this.ray=new Vb(a,
|
|
|
+b);this.near=c||0;this.far=d||Infinity;this.camera=null;this.layers=new De;this.params={Mesh:{},Line:{threshold:1},LOD:{},Points:{threshold:1},Sprite:{}};Object.defineProperties(this.params,{PointCloud:{get:function(){console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points.");return this.Points}}})}function li(a,b){return a.distance-b.distance}function Ng(a,b,c,d){a.layers.test(b.layers)&&a.raycast(b,c);if(!0===d){a=a.children;d=0;for(var e=a.length;d<e;d++)Ng(a[d],b,c,
|
|
|
+!0)}}function mi(a,b,c){this.radius=void 0!==a?a:1;this.phi=void 0!==b?b:0;this.theta=void 0!==c?c:0;return this}function ni(a,b,c){this.radius=void 0!==a?a:1;this.theta=void 0!==b?b:0;this.y=void 0!==c?c:0;return this}function Og(a,b){this.min=void 0!==a?a:new w(Infinity,Infinity);this.max=void 0!==b?b:new w(-Infinity,-Infinity)}function Pg(a,b){this.start=void 0!==a?a:new n;this.end=void 0!==b?b:new n}function ne(a){y.call(this);this.material=a;this.render=function(){};this.hasUvs=this.hasColors=
|
|
|
+this.hasNormals=this.hasPositions=!1;this.uvArray=this.colorArray=this.normalArray=this.positionArray=null;this.count=0}function fd(a,b){y.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.color=b;a=new F;b=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1];for(var c=0,d=1;32>c;c++,d++){var e=c/32*Math.PI*2,f=d/32*Math.PI*2;b.push(Math.cos(e),Math.sin(e),1,Math.cos(f),Math.sin(f),1)}a.setAttribute("position",new B(b,3));b=new ja({fog:!1,
|
|
|
+toneMapped:!1});this.cone=new da(a,b);this.add(this.cone);this.update()}function oi(a){var b=[];a&&a.isBone&&b.push(a);for(var c=0;c<a.children.length;c++)b.push.apply(b,oi(a.children[c]));return b}function oc(a){for(var b=oi(a),c=new F,d=[],e=[],f=new D(0,0,1),g=new D(0,1,0),h=0;h<b.length;h++){var l=b[h];l.parent&&l.parent.isBone&&(d.push(0,0,0),d.push(0,0,0),e.push(f.r,f.g,f.b),e.push(g.r,g.g,g.b))}c.setAttribute("position",new B(d,3));c.setAttribute("color",new B(e,3));d=new ja({vertexColors:!0,
|
|
|
+depthTest:!1,depthWrite:!1,toneMapped:!1,transparent:!0});da.call(this,c,d);this.type="SkeletonHelper";this.root=a;this.bones=b;this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1}function gd(a,b,c){this.light=a;this.light.updateMatrixWorld();this.color=c;a=new dc(b,4,2);b=new Na({wireframe:!0,fog:!1,toneMapped:!1});U.call(this,a,b);this.type="PointLightHelper";this.matrix=this.light.matrixWorld;this.matrixAutoUpdate=!1;this.update()}function hd(a,b,c){y.call(this);this.light=a;this.light.updateMatrixWorld();
|
|
|
+this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.color=c;a=new ac(b);a.rotateY(.5*Math.PI);this.material=new Na({wireframe:!0,fog:!1,toneMapped:!1});void 0===this.color&&(this.material.vertexColors=!0);b=a.getAttribute("position");b=new Float32Array(3*b.count);a.setAttribute("color",new G(b,3));this.add(new U(a,this.material));this.update()}function wf(a,b,c,d){a=a||10;b=b||10;c=new D(void 0!==c?c:4473924);d=new D(void 0!==d?d:8947848);var e=b/2,f=a/b,g=a/2;a=[];for(var h=[],l=0,m=0,k=-g;l<=
|
|
|
+b;l++,k+=f){a.push(-g,0,k,g,0,k);a.push(k,0,-g,k,0,g);var p=l===e?c:d;p.toArray(h,m);m+=3;p.toArray(h,m);m+=3;p.toArray(h,m);m+=3;p.toArray(h,m);m+=3}b=new F;b.setAttribute("position",new B(a,3));b.setAttribute("color",new B(h,3));c=new ja({vertexColors:!0,toneMapped:!1});da.call(this,b,c);this.type="GridHelper"}function xf(a,b,c,d,e,f){a=a||10;b=b||16;c=c||8;d=d||64;e=new D(void 0!==e?e:4473924);f=new D(void 0!==f?f:8947848);for(var g=[],h=[],l=0;l<=b;l++){var m=l/b*2*Math.PI,k=Math.sin(m)*a;m=Math.cos(m)*
|
|
|
+a;g.push(0,0,0);g.push(k,0,m);k=l&1?e:f;h.push(k.r,k.g,k.b);h.push(k.r,k.g,k.b)}for(b=0;b<=c;b++)for(l=b&1?e:f,k=a-a/c*b,m=0;m<d;m++){var p=m/d*2*Math.PI,n=Math.sin(p)*k;p=Math.cos(p)*k;g.push(n,0,p);h.push(l.r,l.g,l.b);p=(m+1)/d*2*Math.PI;n=Math.sin(p)*k;p=Math.cos(p)*k;g.push(n,0,p);h.push(l.r,l.g,l.b)}a=new F;a.setAttribute("position",new B(g,3));a.setAttribute("color",new B(h,3));g=new ja({vertexColors:!0,toneMapped:!1});da.call(this,a,g);this.type="PolarGridHelper"}function id(a,b,c){y.call(this);
|
|
|
+this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.color=c;void 0===b&&(b=1);a=new F;a.setAttribute("position",new B([-b,b,0,b,b,0,b,-b,0,-b,-b,0,-b,b,0],3));b=new ja({fog:!1,toneMapped:!1});this.lightPlane=new Ja(a,b);this.add(this.lightPlane);a=new F;a.setAttribute("position",new B([0,0,0,0,0,1],3));this.targetLine=new Ja(a,b);this.add(this.targetLine);this.update()}function oe(a){function b(a,b,d){c(a,d);c(b,d)}function c(a,b){f.push(0,0,0);g.push(b.r,
|
|
|
+b.g,b.b);void 0===h[a]&&(h[a]=[]);h[a].push(f.length/3-1)}var d=new F,e=new ja({color:16777215,vertexColors:!0,toneMapped:!1}),f=[],g=[],h={},l=new D(16755200),m=new D(16711680),k=new D(43775),p=new D(16777215),n=new D(3355443);b("n1","n2",l);b("n2","n4",l);b("n4","n3",l);b("n3","n1",l);b("f1","f2",l);b("f2","f4",l);b("f4","f3",l);b("f3","f1",l);b("n1","f1",l);b("n2","f2",l);b("n3","f3",l);b("n4","f4",l);b("p","n1",m);b("p","n2",m);b("p","n3",m);b("p","n4",m);b("u1","u2",k);b("u2","u3",k);b("u3",
|
|
|
+"u1",k);b("c","t",p);b("p","c",n);b("cn1","cn2",n);b("cn3","cn4",n);b("cf1","cf2",n);b("cf3","cf4",n);d.setAttribute("position",new B(f,3));d.setAttribute("color",new B(g,3));da.call(this,d,e);this.type="CameraHelper";this.camera=a;this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.pointMap=h;this.update()}function W(a,b,c,d,e,f,g){yf.set(e,f,g).unproject(d);a=b[a];if(void 0!==a)for(c=c.getAttribute("position"),b=0,d=a.length;b<
|
|
|
+d;b++)c.setXYZ(a[b],yf.x,yf.y,yf.z)}function ub(a,b){this.object=a;void 0===b&&(b=16776960);a=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var c=new Float32Array(24),d=new F;d.setIndex(new G(a,1));d.setAttribute("position",new G(c,3));da.call(this,d,new ja({color:b,toneMapped:!1}));this.type="BoxHelper";this.matrixAutoUpdate=!1;this.update()}function pe(a,b){this.type="Box3Helper";this.box=a;b=b||16776960;a=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]);var c=
|
|
|
+new F;c.setIndex(new G(a,1));c.setAttribute("position",new B([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3));da.call(this,c,new ja({color:b,toneMapped:!1}));this.type="Box3Helper";this.geometry.computeBoundingSphere()}function qe(a,b,c){this.plane=a;this.size=void 0===b?1:b;a=void 0!==c?c:16776960;b=new F;b.setAttribute("position",new B([1,-1,1,-1,1,1,-1,-1,1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,1,0,0,1,0,0,0],3));b.computeBoundingSphere();Ja.call(this,b,new ja({color:a,toneMapped:!1}));
|
|
|
+this.type="PlaneHelper";b=new F;b.setAttribute("position",new B([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3));b.computeBoundingSphere();this.add(new U(b,new Na({color:a,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}function vb(a,b,c,d,e,f){y.call(this);this.type="ArrowHelper";void 0===a&&(a=new n(0,0,1));void 0===b&&(b=new n(0,0,0));void 0===c&&(c=1);void 0===d&&(d=16776960);void 0===e&&(e=.2*c);void 0===f&&(f=.2*e);void 0===zf&&(zf=new F,zf.setAttribute("position",new B([0,0,0,0,1,
|
|
|
+0],3)),Qg=new rb(0,.5,1,5,1),Qg.translate(0,-.5,0));this.position.copy(b);this.line=new Ja(zf,new ja({color:d,toneMapped:!1}));this.line.matrixAutoUpdate=!1;this.add(this.line);this.cone=new U(Qg,new Na({color:d,toneMapped:!1}));this.cone.matrixAutoUpdate=!1;this.add(this.cone);this.setDirection(a);this.setLength(c,e,f)}function re(a){a=a||1;var b=[0,0,0,a,0,0,0,0,0,0,a,0,0,0,0,0,0,a];a=new F;a.setAttribute("position",new B(b,3));a.setAttribute("color",new B([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,
|
|
|
+1],3));b=new ja({vertexColors:!0,toneMapped:!1});da.call(this,a,b);this.type="AxesHelper"}function Rg(a){this._renderer=a;this._pingPongRenderTarget=null;a=new Float32Array(20);var b=new n(0,1,0);a=new sb({defines:{n:20},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:a},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:b},inputEncoding:{value:lb[3E3]},outputEncoding:{value:lb[3E3]}},vertexShader:Sg(),fragmentShader:"\nprecision mediump float;\nprecision mediump int;\nvarying vec3 vOutputDirection;\nuniform sampler2D envMap;\nuniform int samples;\nuniform float weights[n];\nuniform bool latitudinal;\nuniform float dTheta;\nuniform float mipInt;\nuniform vec3 poleAxis;\n\n"+
|
|
|
+Tg()+"\n\n#define ENVMAP_TYPE_CUBE_UV\n#include <cube_uv_reflection_fragment>\n\nvec3 getSample(float theta, vec3 axis) {\n\tfloat cosTheta = cos(theta);\n\t// Rodrigues' axis-angle rotation\n\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t+ cross(axis, vOutputDirection) * sin(theta)\n\t\t+ axis * dot(axis, vOutputDirection) * (1.0 - cosTheta);\n\treturn bilinearCubeUV(envMap, sampleDirection, mipInt);\n}\n\nvoid main() {\n\tvec3 axis = latitudinal ? poleAxis : cross(poleAxis, vOutputDirection);\n\tif (all(equal(axis, vec3(0.0))))\n\t\taxis = vec3(vOutputDirection.z, 0.0, - vOutputDirection.x);\n\taxis = normalize(axis);\n\tgl_FragColor = vec4(0.0);\n\tgl_FragColor.rgb += weights[0] * getSample(0.0, axis);\n\tfor (int i = 1; i < n; i++) {\n\t\tif (i >= samples)\n\t\t\tbreak;\n\t\tfloat theta = dTheta * float(i);\n\t\tgl_FragColor.rgb += weights[i] * getSample(-1.0 * theta, axis);\n\t\tgl_FragColor.rgb += weights[i] * getSample(theta, axis);\n\t}\n\tgl_FragColor = linearToOutputTexel(gl_FragColor);\n}\n\t\t",
|
|
|
blending:0,depthTest:!1,depthWrite:!1});a.type="SphericalGaussianBlur";this._blurMaterial=a;this._cubemapShader=this._equirectShader=null;this._compileMaterial(this._blurMaterial)}function pi(a){a=new Ga(3*mb,3*mb,a);a.texture.mapping=306;a.texture.name="PMREM.cubeUv";a.scissorTest=!0;return a}function Ug(a,b,c,d,e){a.viewport.set(b,c,d,e);a.scissor.set(b,c,d,e)}function qi(){var a=new w(1,1);a=new sb({uniforms:{envMap:{value:null},texelSize:{value:a},inputEncoding:{value:lb[3E3]},outputEncoding:{value:lb[3E3]}},
|
|
|
vertexShader:Sg(),fragmentShader:"\nprecision mediump float;\nprecision mediump int;\nvarying vec3 vOutputDirection;\nuniform sampler2D envMap;\nuniform vec2 texelSize;\n\n"+Tg()+"\n\n#include <common>\n\nvoid main() {\n\tgl_FragColor = vec4(0.0);\n\tvec3 outputDirection = normalize(vOutputDirection);\n\tvec2 uv = equirectUv( outputDirection );\n\tvec2 f = fract(uv / texelSize - 0.5);\n\tuv -= f * texelSize;\n\tvec3 tl = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n\tuv.x += texelSize.x;\n\tvec3 tr = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n\tuv.y += texelSize.y;\n\tvec3 br = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n\tuv.x -= texelSize.x;\n\tvec3 bl = envMapTexelToLinear(texture2D(envMap, uv)).rgb;\n\tvec3 tm = mix(tl, tr, f.x);\n\tvec3 bm = mix(bl, br, f.x);\n\tgl_FragColor.rgb = mix(tm, bm, f.y);\n\tgl_FragColor = linearToOutputTexel(gl_FragColor);\n}\n\t\t",
|
|
|
blending:0,depthTest:!1,depthWrite:!1});a.type="EquirectangularToCubeUV";return a}function ri(){var a=new sb({uniforms:{envMap:{value:null},inputEncoding:{value:lb[3E3]},outputEncoding:{value:lb[3E3]}},vertexShader:Sg(),fragmentShader:"\nprecision mediump float;\nprecision mediump int;\nvarying vec3 vOutputDirection;\nuniform samplerCube envMap;\n\n"+Tg()+"\n\nvoid main() {\n\tgl_FragColor = vec4(0.0);\n\tgl_FragColor.rgb = envMapTexelToLinear(textureCube(envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ))).rgb;\n\tgl_FragColor = linearToOutputTexel(gl_FragColor);\n}\n\t\t",
|
|
@@ -640,7 +640,7 @@ shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#prag
|
|
|
shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",
|
|
|
skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif",
|
|
|
skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",
|
|
|
-specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nuniform float toneMappingWhitePoint;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\nvec3 Uncharted2ToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( ( color * ( 2.51 * color + 0.03 ) ) / ( color * ( 2.43 * color + 0.59 ) + 0.14 ) );\n}",
|
|
|
+specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\nvec3 Uncharted2ToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( 1.0 ) ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( ( color * ( 2.51 * color + 0.03 ) ) / ( color * ( 2.43 * color + 0.59 ) + 0.14 ) );\n}",
|
|
|
uv_pars_fragment:"#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif",uv2_pars_fragment:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",uv2_pars_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif",
|
|
|
uv2_vertex:"#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",
|
|
|
background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",cube_frag:"#include <envmap_common_pars_fragment>\nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include <cube_uv_reflection_fragment>\nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include <envmap_fragment>\n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",
|
|
@@ -1018,41 +1018,42 @@ addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has
|
|
|
setTextureCube:function(){console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed.")},getActiveMipMapLevel:function(){console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel().");return this.getActiveMipmapLevel()}});Object.defineProperties(mg.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(a){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled.");this.shadowMap.enabled=a}},shadowMapType:{get:function(){return this.shadowMap.type},
|
|
|
set:function(a){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type.");this.shadowMap.type=a}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}},context:{get:function(){console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead.");return this.getContext()}},
|
|
|
vr:{get:function(){console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr");return this.xr}},gammaInput:{get:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.");return!1},set:function(){console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead.")}},gammaOutput:{get:function(){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.");
|
|
|
-return!1},set:function(a){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.");this.outputEncoding=!0===a?3001:3E3}}});Object.defineProperties(Th.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},
|
|
|
-set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}});Object.defineProperties(Ga.prototype,{wrapS:{get:function(){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.");
|
|
|
-return this.texture.wrapS},set:function(a){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.");this.texture.wrapS=a}},wrapT:{get:function(){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.");return this.texture.wrapT},set:function(a){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.");this.texture.wrapT=a}},magFilter:{get:function(){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.");return this.texture.magFilter},
|
|
|
-set:function(a){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.");this.texture.magFilter=a}},minFilter:{get:function(){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.");return this.texture.minFilter},set:function(a){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.");this.texture.minFilter=a}},anisotropy:{get:function(){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.");return this.texture.anisotropy},
|
|
|
-set:function(a){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.");this.texture.anisotropy=a}},offset:{get:function(){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset.");return this.texture.offset},set:function(a){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset.");this.texture.offset=a}},repeat:{get:function(){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat.");return this.texture.repeat},set:function(a){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat.");
|
|
|
-this.texture.repeat=a}},format:{get:function(){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format.");return this.texture.format},set:function(a){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format.");this.texture.format=a}},type:{get:function(){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type.");return this.texture.type},set:function(a){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type.");this.texture.type=a}},generateMipmaps:{get:function(){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.");
|
|
|
-return this.texture.generateMipmaps},set:function(a){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.");this.texture.generateMipmaps=a}}});Object.defineProperties(ed.prototype,{load:{value:function(a){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var b=this;(new uf).load(a,function(a){b.setBuffer(a)});return this}},startTime:{set:function(){console.warn("THREE.Audio: .startTime is now .play( delay ).")}}});Ig.prototype.getData=
|
|
|
-function(){console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData().");return this.getFrequencyData()};Dc.prototype.updateCubeMap=function(a,b){console.warn("THREE.CubeCamera: .updateCubeMap() is now .update().");return this.update(a,b)};Nb.crossOrigin=void 0;Nb.loadTexture=function(a,b,c,d){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var e=new ff;e.setCrossOrigin(this.crossOrigin);a=e.load(a,c,void 0,d);b&&(a.mapping=b);return a};
|
|
|
-Nb.loadTextureCube=function(a,b,c,d){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var e=new ef;e.setCrossOrigin(this.crossOrigin);a=e.load(a,c,void 0,d);b&&(a.mapping=b);return a};Nb.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")};Nb.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};
|
|
|
-"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:"118dev"}}));k.ACESFilmicToneMapping=5;k.AddEquation=100;k.AddOperation=2;k.AdditiveAnimationBlendMode=2501;k.AdditiveBlending=2;k.AlphaFormat=1021;k.AlwaysDepth=1;k.AlwaysStencilFunc=519;k.AmbientLight=nf;k.AmbientLightProbe=Dg;k.AnimationClip=Qa;k.AnimationLoader=ug;k.AnimationMixer=Kg;k.AnimationObjectGroup=ji;k.AnimationUtils=Z;k.ArcCurve=cd;k.ArrayCamera=Me;k.ArrowHelper=vb;
|
|
|
-k.Audio=ed;k.AudioAnalyser=Ig;k.AudioContext=Gg;k.AudioListener=Fg;k.AudioLoader=uf;k.AxesHelper=re;k.AxisHelper=function(a){console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper.");return new re(a)};k.BackSide=1;k.BasicDepthPacking=3200;k.BasicShadowMap=0;k.BinaryTextureLoader=function(a){console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader.");return new df(a)};k.Bone=ng;k.BooleanKeyframeTrack=$e;k.BoundingBoxHelper=function(a,b){console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead.");
|
|
|
-return new ub(a,b)};k.Box2=Og;k.Box3=Ta;k.Box3Helper=pe;k.BoxBufferGeometry=Fd;k.BoxGeometry=ih;k.BoxHelper=ub;k.BufferAttribute=G;k.BufferGeometry=F;k.BufferGeometryLoader=sf;k.ByteType=1010;k.Cache=sc;k.Camera=eb;k.CameraHelper=oe;k.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been removed")};k.CanvasTexture=Od;k.CatmullRomCurve3=pa;k.CineonToneMapping=4;k.CircleBufferGeometry=Zc;k.CircleGeometry=he;k.ClampToEdgeWrapping=1001;k.Clock=Eg;k.ClosedSplineCurve3=si;k.Color=D;k.ColorKeyframeTrack=
|
|
|
-af;k.CompressedTexture=Mc;k.CompressedTextureLoader=vg;k.ConeBufferGeometry=ge;k.ConeGeometry=fe;k.CubeCamera=Dc;k.CubeGeometry=ih;k.CubeReflectionMapping=301;k.CubeRefractionMapping=302;k.CubeTexture=pb;k.CubeTextureLoader=ef;k.CubeUVReflectionMapping=306;k.CubeUVRefractionMapping=307;k.CubicBezierCurve=Xa;k.CubicBezierCurve3=ib;k.CubicInterpolant=Ye;k.CullFaceBack=1;k.CullFaceFront=2;k.CullFaceFrontBack=3;k.CullFaceNone=0;k.Curve=J;k.CurvePath=tb;k.CustomBlending=5;k.CylinderBufferGeometry=rb;k.CylinderGeometry=
|
|
|
-gc;k.Cylindrical=ni;k.DataTexture=Zb;k.DataTexture2DArray=Fc;k.DataTexture3D=Gc;k.DataTextureLoader=df;k.DecrementStencilOp=7683;k.DecrementWrapStencilOp=34056;k.DefaultLoadingManager=fi;k.DepthFormat=1026;k.DepthStencilFormat=1027;k.DepthTexture=Pd;k.DirectionalLight=mf;k.DirectionalLightHelper=id;k.DirectionalLightShadow=lf;k.DiscreteInterpolant=Ze;k.DodecahedronBufferGeometry=Rc;k.DodecahedronGeometry=Vd;k.DoubleSide=2;k.DstAlphaFactor=206;k.DstColorFactor=208;k.DynamicBufferAttribute=function(a,
|
|
|
-b){console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead.");return(new G(a,b)).setUsage(35048)};k.DynamicCopyUsage=35050;k.DynamicDrawUsage=35048;k.DynamicReadUsage=35049;k.EdgesGeometry=Yc;k.EdgesHelper=function(a,b){console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead.");return new da(new Yc(a.geometry),new ja({color:void 0!==b?b:16777215}))};k.EllipseCurve=La;k.EqualDepth=4;k.EqualStencilFunc=
|
|
|
-514;k.EquirectangularReflectionMapping=303;k.EquirectangularRefractionMapping=304;k.Euler=Tb;k.EventDispatcher=ta;k.ExtrudeBufferGeometry=gb;k.ExtrudeGeometry=cc;k.Face3=yc;k.Face4=function(a,b,c,d,e,f,g){console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead.");return new yc(a,b,c,e,f,g)};k.FaceColors=1;k.FileLoader=Ra;k.FlatShading=1;k.Float32Attribute=function(a,b){console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead.");
|
|
|
-return new B(a,b)};k.Float32BufferAttribute=B;k.Float64Attribute=function(a,b){console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead.");return new Cd(a,b)};k.Float64BufferAttribute=Cd;k.FloatType=1015;k.Fog=Pe;k.FogExp2=Oe;k.Font=Ag;k.FontLoader=Bg;k.FrontFaceDirectionCCW=1;k.FrontFaceDirectionCW=0;k.FrontSide=0;k.Frustum=Ec;k.GammaEncoding=3007;k.Geometry=H;k.GeometryUtils={merge:function(a,b,c){console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead.");
|
|
|
-if(b.isMesh){b.matrixAutoUpdate&&b.updateMatrix();var d=b.matrix;b=b.geometry}a.merge(b,d,c)},center:function(a){console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead.");return a.center()}};k.GreaterDepth=6;k.GreaterEqualDepth=5;k.GreaterEqualStencilFunc=518;k.GreaterStencilFunc=516;k.GridHelper=wf;k.Group=Ic;k.HalfFloatType=1016;k.HemisphereLight=gf;k.HemisphereLightHelper=hd;k.HemisphereLightProbe=Cg;k.IcosahedronBufferGeometry=Qc;k.IcosahedronGeometry=
|
|
|
-Ud;k.ImageBitmapLoader=yg;k.ImageLoader=bd;k.ImageUtils=Nb;k.ImmediateRenderObject=ne;k.IncrementStencilOp=7682;k.IncrementWrapStencilOp=34055;k.InstancedBufferAttribute=rf;k.InstancedBufferGeometry=me;k.InstancedInterleavedBuffer=Lg;k.InstancedMesh=Te;k.Int16Attribute=function(a,b){console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead.");return new Ad(a,b)};k.Int16BufferAttribute=Ad;k.Int32Attribute=function(a,b){console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead.");
|
|
|
-return new Bd(a,b)};k.Int32BufferAttribute=Bd;k.Int8Attribute=function(a,b){console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead.");return new xd(a,b)};k.Int8BufferAttribute=xd;k.IntType=1013;k.InterleavedBuffer=Ia;k.InterleavedBufferAttribute=Ib;k.Interpolant=Ka;k.InterpolateDiscrete=2300;k.InterpolateLinear=2301;k.InterpolateSmooth=2302;k.InvertStencilOp=5386;k.JSONLoader=function(){console.error("THREE.JSONLoader has been removed.")};k.KeepStencilOp=7680;
|
|
|
-k.KeyframeTrack=sa;k.LOD=Nd;k.LatheBufferGeometry=Xc;k.LatheGeometry=ee;k.Layers=De;k.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")};k.LessDepth=2;k.LessEqualDepth=3;k.LessEqualStencilFunc=515;k.LessStencilFunc=513;k.Light=ha;k.LightProbe=Sa;k.LightShadow=kb;k.Line=Ja;k.Line3=Pg;k.LineBasicMaterial=ja;k.LineCurve=Ca;k.LineCurve3=Ya;k.LineDashedMaterial=nc;k.LineLoop=Ue;k.LinePieces=1;k.LineSegments=da;k.LineStrip=0;k.LinearEncoding=3E3;
|
|
|
-k.LinearFilter=1006;k.LinearInterpolant=ie;k.LinearMipMapLinearFilter=1008;k.LinearMipMapNearestFilter=1007;k.LinearMipmapLinearFilter=1008;k.LinearMipmapNearestFilter=1007;k.LinearToneMapping=1;k.Loader=S;k.LoaderUtils=oh;k.LoadingManager=tg;k.LogLuvEncoding=3003;k.LoopOnce=2200;k.LoopPingPong=2202;k.LoopRepeat=2201;k.LuminanceAlphaFormat=1025;k.LuminanceFormat=1024;k.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2};k.Material=K;k.MaterialLoader=qf;k.Math=L;k.MathUtils=L;k.Matrix3=wa;k.Matrix4=
|
|
|
-M;k.MaxEquation=104;k.Mesh=U;k.MeshBasicMaterial=Na;k.MeshDepthMaterial=Fb;k.MeshDistanceMaterial=Gb;k.MeshFaceMaterial=function(a){console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead.");return a};k.MeshLambertMaterial=lc;k.MeshMatcapMaterial=mc;k.MeshNormalMaterial=kc;k.MeshPhongMaterial=Lb;k.MeshPhysicalMaterial=ic;k.MeshStandardMaterial=hb;k.MeshToonMaterial=jc;k.MinEquation=103;k.MirroredRepeatWrapping=1002;k.MixOperation=1;k.MultiMaterial=function(a){void 0===a&&(a=[]);
|
|
|
-console.warn("THREE.MultiMaterial has been removed. Use an Array instead.");a.isMultiMaterial=!0;a.materials=a;a.clone=function(){return a.slice()};return a};k.MultiplyBlending=4;k.MultiplyOperation=0;k.NearestFilter=1003;k.NearestMipMapLinearFilter=1005;k.NearestMipMapNearestFilter=1004;k.NearestMipmapLinearFilter=1005;k.NearestMipmapNearestFilter=1004;k.NeverDepth=0;k.NeverStencilFunc=512;k.NoBlending=0;k.NoColors=0;k.NoToneMapping=0;k.NormalAnimationBlendMode=2500;k.NormalBlending=1;k.NotEqualDepth=
|
|
|
-7;k.NotEqualStencilFunc=517;k.NumberKeyframeTrack=$c;k.Object3D=y;k.ObjectLoader=tf;k.ObjectSpaceNormalMap=1;k.OctahedronBufferGeometry=ac;k.OctahedronGeometry=Td;k.OneFactor=201;k.OneMinusDstAlphaFactor=207;k.OneMinusDstColorFactor=209;k.OneMinusSrcAlphaFactor=205;k.OneMinusSrcColorFactor=203;k.OrthographicCamera=dd;k.PCFShadowMap=1;k.PCFSoftShadowMap=2;k.PMREMGenerator=Rg;k.ParametricBufferGeometry=Oc;k.ParametricGeometry=Qd;k.Particle=function(a){console.warn("THREE.Particle has been renamed to THREE.Sprite.");
|
|
|
-return new Ld(a)};k.ParticleBasicMaterial=function(a){console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial.");return new Wa(a)};k.ParticleSystem=function(a,b){console.warn("THREE.ParticleSystem has been renamed to THREE.Points.");return new Lc(a,b)};k.ParticleSystemMaterial=function(a){console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial.");return new Wa(a)};k.Path=ab;k.PerspectiveCamera=T;k.Plane=Ua;k.PlaneBufferGeometry=$b;k.PlaneGeometry=
|
|
|
-Ed;k.PlaneHelper=qe;k.PointCloud=function(a,b){console.warn("THREE.PointCloud has been renamed to THREE.Points.");return new Lc(a,b)};k.PointCloudMaterial=function(a){console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial.");return new Wa(a)};k.PointLight=kf;k.PointLightHelper=gd;k.Points=Lc;k.PointsMaterial=Wa;k.PolarGridHelper=xf;k.PolyhedronBufferGeometry=Ea;k.PolyhedronGeometry=Rd;k.PositionalAudio=Hg;k.PropertyBinding=ya;k.PropertyMixer=Jg;k.QuadraticBezierCurve=Za;k.QuadraticBezierCurve3=
|
|
|
-jb;k.Quaternion=ua;k.QuaternionKeyframeTrack=je;k.QuaternionLinearInterpolant=bf;k.REVISION="118dev";k.RGBADepthPacking=3201;k.RGBAFormat=1023;k.RGBAIntegerFormat=1033;k.RGBA_ASTC_10x10_Format=37819;k.RGBA_ASTC_10x5_Format=37816;k.RGBA_ASTC_10x6_Format=37817;k.RGBA_ASTC_10x8_Format=37818;k.RGBA_ASTC_12x10_Format=37820;k.RGBA_ASTC_12x12_Format=37821;k.RGBA_ASTC_4x4_Format=37808;k.RGBA_ASTC_5x4_Format=37809;k.RGBA_ASTC_5x5_Format=37810;k.RGBA_ASTC_6x5_Format=37811;k.RGBA_ASTC_6x6_Format=37812;k.RGBA_ASTC_8x5_Format=
|
|
|
-37813;k.RGBA_ASTC_8x6_Format=37814;k.RGBA_ASTC_8x8_Format=37815;k.RGBA_BPTC_Format=36492;k.RGBA_ETC2_EAC_Format=37496;k.RGBA_PVRTC_2BPPV1_Format=35843;k.RGBA_PVRTC_4BPPV1_Format=35842;k.RGBA_S3TC_DXT1_Format=33777;k.RGBA_S3TC_DXT3_Format=33778;k.RGBA_S3TC_DXT5_Format=33779;k.RGBDEncoding=3006;k.RGBEEncoding=3002;k.RGBEFormat=1023;k.RGBFormat=1022;k.RGBIntegerFormat=1032;k.RGBM16Encoding=3005;k.RGBM7Encoding=3004;k.RGB_ETC1_Format=36196;k.RGB_ETC2_Format=37492;k.RGB_PVRTC_2BPPV1_Format=35841;k.RGB_PVRTC_4BPPV1_Format=
|
|
|
-35840;k.RGB_S3TC_DXT1_Format=33776;k.RGFormat=1030;k.RGIntegerFormat=1031;k.RawShaderMaterial=sb;k.Ray=Vb;k.Raycaster=Mg;k.RectAreaLight=of;k.RedFormat=1028;k.RedIntegerFormat=1029;k.ReinhardToneMapping=2;k.RepeatWrapping=1E3;k.ReplaceStencilOp=7681;k.ReverseSubtractEquation=102;k.RingBufferGeometry=Wc;k.RingGeometry=de;k.SRGB8_ALPHA8_ASTC_10x10_Format=37851;k.SRGB8_ALPHA8_ASTC_10x5_Format=37848;k.SRGB8_ALPHA8_ASTC_10x6_Format=37849;k.SRGB8_ALPHA8_ASTC_10x8_Format=37850;k.SRGB8_ALPHA8_ASTC_12x10_Format=
|
|
|
-37852;k.SRGB8_ALPHA8_ASTC_12x12_Format=37853;k.SRGB8_ALPHA8_ASTC_4x4_Format=37840;k.SRGB8_ALPHA8_ASTC_5x4_Format=37841;k.SRGB8_ALPHA8_ASTC_5x5_Format=37842;k.SRGB8_ALPHA8_ASTC_6x5_Format=37843;k.SRGB8_ALPHA8_ASTC_6x6_Format=37844;k.SRGB8_ALPHA8_ASTC_8x5_Format=37845;k.SRGB8_ALPHA8_ASTC_8x6_Format=37846;k.SRGB8_ALPHA8_ASTC_8x8_Format=37847;k.Scene=wd;k.SceneUtils={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},
|
|
|
-attach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")}};k.ShaderChunk=Q;k.ShaderLib=fb;k.ShaderMaterial=Aa;k.ShadowMaterial=hc;k.Shape=Mb;k.ShapeBufferGeometry=fc;k.ShapeGeometry=ec;k.ShapePath=zg;k.ShapeUtils=qb;k.ShortType=1011;k.Skeleton=Se;k.SkeletonHelper=oc;k.SkinnedMesh=Re;k.SmoothShading=2;k.Sphere=db;k.SphereBufferGeometry=dc;k.SphereGeometry=ce;k.Spherical=mi;k.SphericalHarmonics3=pf;k.Spline=Vg;k.SplineCurve=$a;k.SplineCurve3=ti;k.SpotLight=
|
|
|
-jf;k.SpotLightHelper=fd;k.SpotLightShadow=hf;k.Sprite=Ld;k.SpriteMaterial=Jb;k.SrcAlphaFactor=204;k.SrcAlphaSaturateFactor=210;k.SrcColorFactor=202;k.StaticCopyUsage=35046;k.StaticDrawUsage=35044;k.StaticReadUsage=35045;k.StereoCamera=hi;k.StreamCopyUsage=35042;k.StreamDrawUsage=35040;k.StreamReadUsage=35041;k.StringKeyframeTrack=cf;k.SubtractEquation=101;k.SubtractiveBlending=3;k.TOUCH={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3};k.TangentSpaceNormalMap=0;k.TetrahedronBufferGeometry=Pc;k.TetrahedronGeometry=
|
|
|
-Sd;k.TextBufferGeometry=Vc;k.TextGeometry=be;k.Texture=R;k.TextureLoader=ff;k.TorusBufferGeometry=Tc;k.TorusGeometry=Yd;k.TorusKnotBufferGeometry=Sc;k.TorusKnotGeometry=Xd;k.Triangle=oa;k.TriangleFanDrawMode=2;k.TriangleStripDrawMode=1;k.TrianglesDrawMode=0;k.TubeBufferGeometry=bc;k.TubeGeometry=Wd;k.UVMapping=300;k.Uint16Attribute=function(a,b){console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead.");return new Wb(a,b)};k.Uint16BufferAttribute=Wb;k.Uint32Attribute=
|
|
|
-function(a,b){console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead.");return new Xb(a,b)};k.Uint32BufferAttribute=Xb;k.Uint8Attribute=function(a,b){console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead.");return new yd(a,b)};k.Uint8BufferAttribute=yd;k.Uint8ClampedAttribute=function(a,b){console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead.");return new zd(a,
|
|
|
-b)};k.Uint8ClampedBufferAttribute=zd;k.Uncharted2ToneMapping=3;k.Uniform=vf;k.UniformsLib=E;k.UniformsUtils=Qh;k.UnsignedByteType=1009;k.UnsignedInt248Type=1020;k.UnsignedIntType=1014;k.UnsignedShort4444Type=1017;k.UnsignedShort5551Type=1018;k.UnsignedShort565Type=1019;k.UnsignedShortType=1012;k.VSMShadowMap=3;k.Vector2=w;k.Vector3=n;k.Vector4=ea;k.VectorKeyframeTrack=ad;k.Vertex=function(a,b,c){console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead.");return new n(a,b,c)};k.VertexColors=
|
|
|
-2;k.VideoTexture=qg;k.WebGLCubeRenderTarget=Yb;k.WebGLMultisampleRenderTarget=Zf;k.WebGLRenderTarget=Ga;k.WebGLRenderTargetCube=function(a,b,c){console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options ).");return new Yb(a,c)};k.WebGLRenderer=mg;k.WebGLUtils=Uh;k.WireframeGeometry=Nc;k.WireframeHelper=function(a,b){console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead.");return new da(new Nc(a.geometry),new ja({color:void 0!==
|
|
|
-b?b:16777215}))};k.WrapAroundEnding=2402;k.XHRLoader=function(a){console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader.");return new Ra(a)};k.ZeroCurvatureEnding=2400;k.ZeroFactor=200;k.ZeroSlopeEnding=2401;k.ZeroStencilOp=0;k.sRGBEncoding=3001;Object.defineProperty(k,"__esModule",{value:!0})});
|
|
|
+return!1},set:function(a){console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead.");this.outputEncoding=!0===a?3001:3E3}},toneMappingWhitePoint:{get:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.");return 1},set:function(){console.warn("THREE.WebGLRenderer: .toneMappingWhitePoint has been removed.")}}});Object.defineProperties(Th.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},
|
|
|
+set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},
|
|
|
+set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}});Object.defineProperties(Ga.prototype,{wrapS:{get:function(){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.");return this.texture.wrapS},set:function(a){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS.");this.texture.wrapS=a}},wrapT:{get:function(){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.");return this.texture.wrapT},
|
|
|
+set:function(a){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT.");this.texture.wrapT=a}},magFilter:{get:function(){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.");return this.texture.magFilter},set:function(a){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter.");this.texture.magFilter=a}},minFilter:{get:function(){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.");return this.texture.minFilter},
|
|
|
+set:function(a){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter.");this.texture.minFilter=a}},anisotropy:{get:function(){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.");return this.texture.anisotropy},set:function(a){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy.");this.texture.anisotropy=a}},offset:{get:function(){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset.");return this.texture.offset},
|
|
|
+set:function(a){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset.");this.texture.offset=a}},repeat:{get:function(){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat.");return this.texture.repeat},set:function(a){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat.");this.texture.repeat=a}},format:{get:function(){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format.");return this.texture.format},set:function(a){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format.");
|
|
|
+this.texture.format=a}},type:{get:function(){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type.");return this.texture.type},set:function(a){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type.");this.texture.type=a}},generateMipmaps:{get:function(){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.");return this.texture.generateMipmaps},set:function(a){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps.");
|
|
|
+this.texture.generateMipmaps=a}}});Object.defineProperties(ed.prototype,{load:{value:function(a){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var b=this;(new uf).load(a,function(a){b.setBuffer(a)});return this}},startTime:{set:function(){console.warn("THREE.Audio: .startTime is now .play( delay ).")}}});Ig.prototype.getData=function(){console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData().");return this.getFrequencyData()};Dc.prototype.updateCubeMap=
|
|
|
+function(a,b){console.warn("THREE.CubeCamera: .updateCubeMap() is now .update().");return this.update(a,b)};Nb.crossOrigin=void 0;Nb.loadTexture=function(a,b,c,d){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var e=new ff;e.setCrossOrigin(this.crossOrigin);a=e.load(a,c,void 0,d);b&&(a.mapping=b);return a};Nb.loadTextureCube=function(a,b,c,d){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");
|
|
|
+var e=new ef;e.setCrossOrigin(this.crossOrigin);a=e.load(a,c,void 0,d);b&&(a.mapping=b);return a};Nb.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")};Nb.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register",{detail:{revision:"118dev"}}));
|
|
|
+k.ACESFilmicToneMapping=5;k.AddEquation=100;k.AddOperation=2;k.AdditiveAnimationBlendMode=2501;k.AdditiveBlending=2;k.AlphaFormat=1021;k.AlwaysDepth=1;k.AlwaysStencilFunc=519;k.AmbientLight=nf;k.AmbientLightProbe=Dg;k.AnimationClip=Qa;k.AnimationLoader=ug;k.AnimationMixer=Kg;k.AnimationObjectGroup=ji;k.AnimationUtils=Z;k.ArcCurve=cd;k.ArrayCamera=Me;k.ArrowHelper=vb;k.Audio=ed;k.AudioAnalyser=Ig;k.AudioContext=Gg;k.AudioListener=Fg;k.AudioLoader=uf;k.AxesHelper=re;k.AxisHelper=function(a){console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper.");
|
|
|
+return new re(a)};k.BackSide=1;k.BasicDepthPacking=3200;k.BasicShadowMap=0;k.BinaryTextureLoader=function(a){console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader.");return new df(a)};k.Bone=ng;k.BooleanKeyframeTrack=$e;k.BoundingBoxHelper=function(a,b){console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead.");return new ub(a,b)};k.Box2=Og;k.Box3=Ta;k.Box3Helper=pe;k.BoxBufferGeometry=Fd;k.BoxGeometry=ih;k.BoxHelper=ub;k.BufferAttribute=
|
|
|
+G;k.BufferGeometry=F;k.BufferGeometryLoader=sf;k.ByteType=1010;k.Cache=sc;k.Camera=eb;k.CameraHelper=oe;k.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been removed")};k.CanvasTexture=Od;k.CatmullRomCurve3=pa;k.CineonToneMapping=4;k.CircleBufferGeometry=Zc;k.CircleGeometry=he;k.ClampToEdgeWrapping=1001;k.Clock=Eg;k.ClosedSplineCurve3=si;k.Color=D;k.ColorKeyframeTrack=af;k.CompressedTexture=Mc;k.CompressedTextureLoader=vg;k.ConeBufferGeometry=ge;k.ConeGeometry=fe;k.CubeCamera=Dc;
|
|
|
+k.CubeGeometry=ih;k.CubeReflectionMapping=301;k.CubeRefractionMapping=302;k.CubeTexture=pb;k.CubeTextureLoader=ef;k.CubeUVReflectionMapping=306;k.CubeUVRefractionMapping=307;k.CubicBezierCurve=Xa;k.CubicBezierCurve3=ib;k.CubicInterpolant=Ye;k.CullFaceBack=1;k.CullFaceFront=2;k.CullFaceFrontBack=3;k.CullFaceNone=0;k.Curve=J;k.CurvePath=tb;k.CustomBlending=5;k.CylinderBufferGeometry=rb;k.CylinderGeometry=gc;k.Cylindrical=ni;k.DataTexture=Zb;k.DataTexture2DArray=Fc;k.DataTexture3D=Gc;k.DataTextureLoader=
|
|
|
+df;k.DecrementStencilOp=7683;k.DecrementWrapStencilOp=34056;k.DefaultLoadingManager=fi;k.DepthFormat=1026;k.DepthStencilFormat=1027;k.DepthTexture=Pd;k.DirectionalLight=mf;k.DirectionalLightHelper=id;k.DirectionalLightShadow=lf;k.DiscreteInterpolant=Ze;k.DodecahedronBufferGeometry=Rc;k.DodecahedronGeometry=Vd;k.DoubleSide=2;k.DstAlphaFactor=206;k.DstColorFactor=208;k.DynamicBufferAttribute=function(a,b){console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead.");
|
|
|
+return(new G(a,b)).setUsage(35048)};k.DynamicCopyUsage=35050;k.DynamicDrawUsage=35048;k.DynamicReadUsage=35049;k.EdgesGeometry=Yc;k.EdgesHelper=function(a,b){console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead.");return new da(new Yc(a.geometry),new ja({color:void 0!==b?b:16777215}))};k.EllipseCurve=La;k.EqualDepth=4;k.EqualStencilFunc=514;k.EquirectangularReflectionMapping=303;k.EquirectangularRefractionMapping=304;k.Euler=Tb;k.EventDispatcher=ta;k.ExtrudeBufferGeometry=
|
|
|
+gb;k.ExtrudeGeometry=cc;k.Face3=yc;k.Face4=function(a,b,c,d,e,f,g){console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead.");return new yc(a,b,c,e,f,g)};k.FaceColors=1;k.FileLoader=Ra;k.FlatShading=1;k.Float32Attribute=function(a,b){console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead.");return new B(a,b)};k.Float32BufferAttribute=B;k.Float64Attribute=function(a,b){console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead.");
|
|
|
+return new Cd(a,b)};k.Float64BufferAttribute=Cd;k.FloatType=1015;k.Fog=Pe;k.FogExp2=Oe;k.Font=Ag;k.FontLoader=Bg;k.FrontFaceDirectionCCW=1;k.FrontFaceDirectionCW=0;k.FrontSide=0;k.Frustum=Ec;k.GammaEncoding=3007;k.Geometry=H;k.GeometryUtils={merge:function(a,b,c){console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead.");if(b.isMesh){b.matrixAutoUpdate&&b.updateMatrix();var d=b.matrix;b=b.geometry}a.merge(b,d,c)},
|
|
|
+center:function(a){console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead.");return a.center()}};k.GreaterDepth=6;k.GreaterEqualDepth=5;k.GreaterEqualStencilFunc=518;k.GreaterStencilFunc=516;k.GridHelper=wf;k.Group=Ic;k.HalfFloatType=1016;k.HemisphereLight=gf;k.HemisphereLightHelper=hd;k.HemisphereLightProbe=Cg;k.IcosahedronBufferGeometry=Qc;k.IcosahedronGeometry=Ud;k.ImageBitmapLoader=yg;k.ImageLoader=bd;k.ImageUtils=Nb;k.ImmediateRenderObject=ne;k.IncrementStencilOp=
|
|
|
+7682;k.IncrementWrapStencilOp=34055;k.InstancedBufferAttribute=rf;k.InstancedBufferGeometry=me;k.InstancedInterleavedBuffer=Lg;k.InstancedMesh=Te;k.Int16Attribute=function(a,b){console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead.");return new Ad(a,b)};k.Int16BufferAttribute=Ad;k.Int32Attribute=function(a,b){console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead.");return new Bd(a,b)};k.Int32BufferAttribute=Bd;
|
|
|
+k.Int8Attribute=function(a,b){console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead.");return new xd(a,b)};k.Int8BufferAttribute=xd;k.IntType=1013;k.InterleavedBuffer=Ia;k.InterleavedBufferAttribute=Ib;k.Interpolant=Ka;k.InterpolateDiscrete=2300;k.InterpolateLinear=2301;k.InterpolateSmooth=2302;k.InvertStencilOp=5386;k.JSONLoader=function(){console.error("THREE.JSONLoader has been removed.")};k.KeepStencilOp=7680;k.KeyframeTrack=sa;k.LOD=Nd;k.LatheBufferGeometry=
|
|
|
+Xc;k.LatheGeometry=ee;k.Layers=De;k.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")};k.LessDepth=2;k.LessEqualDepth=3;k.LessEqualStencilFunc=515;k.LessStencilFunc=513;k.Light=ha;k.LightProbe=Sa;k.LightShadow=kb;k.Line=Ja;k.Line3=Pg;k.LineBasicMaterial=ja;k.LineCurve=Ca;k.LineCurve3=Ya;k.LineDashedMaterial=nc;k.LineLoop=Ue;k.LinePieces=1;k.LineSegments=da;k.LineStrip=0;k.LinearEncoding=3E3;k.LinearFilter=1006;k.LinearInterpolant=ie;k.LinearMipMapLinearFilter=
|
|
|
+1008;k.LinearMipMapNearestFilter=1007;k.LinearMipmapLinearFilter=1008;k.LinearMipmapNearestFilter=1007;k.LinearToneMapping=1;k.Loader=S;k.LoaderUtils=oh;k.LoadingManager=tg;k.LogLuvEncoding=3003;k.LoopOnce=2200;k.LoopPingPong=2202;k.LoopRepeat=2201;k.LuminanceAlphaFormat=1025;k.LuminanceFormat=1024;k.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2};k.Material=K;k.MaterialLoader=qf;k.Math=L;k.MathUtils=L;k.Matrix3=wa;k.Matrix4=M;k.MaxEquation=104;k.Mesh=U;k.MeshBasicMaterial=Na;k.MeshDepthMaterial=
|
|
|
+Fb;k.MeshDistanceMaterial=Gb;k.MeshFaceMaterial=function(a){console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead.");return a};k.MeshLambertMaterial=lc;k.MeshMatcapMaterial=mc;k.MeshNormalMaterial=kc;k.MeshPhongMaterial=Lb;k.MeshPhysicalMaterial=ic;k.MeshStandardMaterial=hb;k.MeshToonMaterial=jc;k.MinEquation=103;k.MirroredRepeatWrapping=1002;k.MixOperation=1;k.MultiMaterial=function(a){void 0===a&&(a=[]);console.warn("THREE.MultiMaterial has been removed. Use an Array instead.");
|
|
|
+a.isMultiMaterial=!0;a.materials=a;a.clone=function(){return a.slice()};return a};k.MultiplyBlending=4;k.MultiplyOperation=0;k.NearestFilter=1003;k.NearestMipMapLinearFilter=1005;k.NearestMipMapNearestFilter=1004;k.NearestMipmapLinearFilter=1005;k.NearestMipmapNearestFilter=1004;k.NeverDepth=0;k.NeverStencilFunc=512;k.NoBlending=0;k.NoColors=0;k.NoToneMapping=0;k.NormalAnimationBlendMode=2500;k.NormalBlending=1;k.NotEqualDepth=7;k.NotEqualStencilFunc=517;k.NumberKeyframeTrack=$c;k.Object3D=y;k.ObjectLoader=
|
|
|
+tf;k.ObjectSpaceNormalMap=1;k.OctahedronBufferGeometry=ac;k.OctahedronGeometry=Td;k.OneFactor=201;k.OneMinusDstAlphaFactor=207;k.OneMinusDstColorFactor=209;k.OneMinusSrcAlphaFactor=205;k.OneMinusSrcColorFactor=203;k.OrthographicCamera=dd;k.PCFShadowMap=1;k.PCFSoftShadowMap=2;k.PMREMGenerator=Rg;k.ParametricBufferGeometry=Oc;k.ParametricGeometry=Qd;k.Particle=function(a){console.warn("THREE.Particle has been renamed to THREE.Sprite.");return new Ld(a)};k.ParticleBasicMaterial=function(a){console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial.");
|
|
|
+return new Wa(a)};k.ParticleSystem=function(a,b){console.warn("THREE.ParticleSystem has been renamed to THREE.Points.");return new Lc(a,b)};k.ParticleSystemMaterial=function(a){console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial.");return new Wa(a)};k.Path=ab;k.PerspectiveCamera=T;k.Plane=Ua;k.PlaneBufferGeometry=$b;k.PlaneGeometry=Ed;k.PlaneHelper=qe;k.PointCloud=function(a,b){console.warn("THREE.PointCloud has been renamed to THREE.Points.");return new Lc(a,b)};k.PointCloudMaterial=
|
|
|
+function(a){console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial.");return new Wa(a)};k.PointLight=kf;k.PointLightHelper=gd;k.Points=Lc;k.PointsMaterial=Wa;k.PolarGridHelper=xf;k.PolyhedronBufferGeometry=Ea;k.PolyhedronGeometry=Rd;k.PositionalAudio=Hg;k.PropertyBinding=ya;k.PropertyMixer=Jg;k.QuadraticBezierCurve=Za;k.QuadraticBezierCurve3=jb;k.Quaternion=ua;k.QuaternionKeyframeTrack=je;k.QuaternionLinearInterpolant=bf;k.REVISION="118dev";k.RGBADepthPacking=3201;k.RGBAFormat=
|
|
|
+1023;k.RGBAIntegerFormat=1033;k.RGBA_ASTC_10x10_Format=37819;k.RGBA_ASTC_10x5_Format=37816;k.RGBA_ASTC_10x6_Format=37817;k.RGBA_ASTC_10x8_Format=37818;k.RGBA_ASTC_12x10_Format=37820;k.RGBA_ASTC_12x12_Format=37821;k.RGBA_ASTC_4x4_Format=37808;k.RGBA_ASTC_5x4_Format=37809;k.RGBA_ASTC_5x5_Format=37810;k.RGBA_ASTC_6x5_Format=37811;k.RGBA_ASTC_6x6_Format=37812;k.RGBA_ASTC_8x5_Format=37813;k.RGBA_ASTC_8x6_Format=37814;k.RGBA_ASTC_8x8_Format=37815;k.RGBA_BPTC_Format=36492;k.RGBA_ETC2_EAC_Format=37496;k.RGBA_PVRTC_2BPPV1_Format=
|
|
|
+35843;k.RGBA_PVRTC_4BPPV1_Format=35842;k.RGBA_S3TC_DXT1_Format=33777;k.RGBA_S3TC_DXT3_Format=33778;k.RGBA_S3TC_DXT5_Format=33779;k.RGBDEncoding=3006;k.RGBEEncoding=3002;k.RGBEFormat=1023;k.RGBFormat=1022;k.RGBIntegerFormat=1032;k.RGBM16Encoding=3005;k.RGBM7Encoding=3004;k.RGB_ETC1_Format=36196;k.RGB_ETC2_Format=37492;k.RGB_PVRTC_2BPPV1_Format=35841;k.RGB_PVRTC_4BPPV1_Format=35840;k.RGB_S3TC_DXT1_Format=33776;k.RGFormat=1030;k.RGIntegerFormat=1031;k.RawShaderMaterial=sb;k.Ray=Vb;k.Raycaster=Mg;k.RectAreaLight=
|
|
|
+of;k.RedFormat=1028;k.RedIntegerFormat=1029;k.ReinhardToneMapping=2;k.RepeatWrapping=1E3;k.ReplaceStencilOp=7681;k.ReverseSubtractEquation=102;k.RingBufferGeometry=Wc;k.RingGeometry=de;k.SRGB8_ALPHA8_ASTC_10x10_Format=37851;k.SRGB8_ALPHA8_ASTC_10x5_Format=37848;k.SRGB8_ALPHA8_ASTC_10x6_Format=37849;k.SRGB8_ALPHA8_ASTC_10x8_Format=37850;k.SRGB8_ALPHA8_ASTC_12x10_Format=37852;k.SRGB8_ALPHA8_ASTC_12x12_Format=37853;k.SRGB8_ALPHA8_ASTC_4x4_Format=37840;k.SRGB8_ALPHA8_ASTC_5x4_Format=37841;k.SRGB8_ALPHA8_ASTC_5x5_Format=
|
|
|
+37842;k.SRGB8_ALPHA8_ASTC_6x5_Format=37843;k.SRGB8_ALPHA8_ASTC_6x6_Format=37844;k.SRGB8_ALPHA8_ASTC_8x5_Format=37845;k.SRGB8_ALPHA8_ASTC_8x6_Format=37846;k.SRGB8_ALPHA8_ASTC_8x8_Format=37847;k.Scene=wd;k.SceneUtils={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/jsm/utils/SceneUtils.js")}};
|
|
|
+k.ShaderChunk=Q;k.ShaderLib=fb;k.ShaderMaterial=Aa;k.ShadowMaterial=hc;k.Shape=Mb;k.ShapeBufferGeometry=fc;k.ShapeGeometry=ec;k.ShapePath=zg;k.ShapeUtils=qb;k.ShortType=1011;k.Skeleton=Se;k.SkeletonHelper=oc;k.SkinnedMesh=Re;k.SmoothShading=2;k.Sphere=db;k.SphereBufferGeometry=dc;k.SphereGeometry=ce;k.Spherical=mi;k.SphericalHarmonics3=pf;k.Spline=Vg;k.SplineCurve=$a;k.SplineCurve3=ti;k.SpotLight=jf;k.SpotLightHelper=fd;k.SpotLightShadow=hf;k.Sprite=Ld;k.SpriteMaterial=Jb;k.SrcAlphaFactor=204;k.SrcAlphaSaturateFactor=
|
|
|
+210;k.SrcColorFactor=202;k.StaticCopyUsage=35046;k.StaticDrawUsage=35044;k.StaticReadUsage=35045;k.StereoCamera=hi;k.StreamCopyUsage=35042;k.StreamDrawUsage=35040;k.StreamReadUsage=35041;k.StringKeyframeTrack=cf;k.SubtractEquation=101;k.SubtractiveBlending=3;k.TOUCH={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3};k.TangentSpaceNormalMap=0;k.TetrahedronBufferGeometry=Pc;k.TetrahedronGeometry=Sd;k.TextBufferGeometry=Vc;k.TextGeometry=be;k.Texture=R;k.TextureLoader=ff;k.TorusBufferGeometry=Tc;k.TorusGeometry=
|
|
|
+Yd;k.TorusKnotBufferGeometry=Sc;k.TorusKnotGeometry=Xd;k.Triangle=oa;k.TriangleFanDrawMode=2;k.TriangleStripDrawMode=1;k.TrianglesDrawMode=0;k.TubeBufferGeometry=bc;k.TubeGeometry=Wd;k.UVMapping=300;k.Uint16Attribute=function(a,b){console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead.");return new Wb(a,b)};k.Uint16BufferAttribute=Wb;k.Uint32Attribute=function(a,b){console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead.");
|
|
|
+return new Xb(a,b)};k.Uint32BufferAttribute=Xb;k.Uint8Attribute=function(a,b){console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead.");return new yd(a,b)};k.Uint8BufferAttribute=yd;k.Uint8ClampedAttribute=function(a,b){console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead.");return new zd(a,b)};k.Uint8ClampedBufferAttribute=zd;k.Uncharted2ToneMapping=3;k.Uniform=vf;k.UniformsLib=E;k.UniformsUtils=
|
|
|
+Qh;k.UnsignedByteType=1009;k.UnsignedInt248Type=1020;k.UnsignedIntType=1014;k.UnsignedShort4444Type=1017;k.UnsignedShort5551Type=1018;k.UnsignedShort565Type=1019;k.UnsignedShortType=1012;k.VSMShadowMap=3;k.Vector2=w;k.Vector3=n;k.Vector4=ea;k.VectorKeyframeTrack=ad;k.Vertex=function(a,b,c){console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead.");return new n(a,b,c)};k.VertexColors=2;k.VideoTexture=qg;k.WebGLCubeRenderTarget=Yb;k.WebGLMultisampleRenderTarget=Zf;k.WebGLRenderTarget=
|
|
|
+Ga;k.WebGLRenderTargetCube=function(a,b,c){console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options ).");return new Yb(a,c)};k.WebGLRenderer=mg;k.WebGLUtils=Uh;k.WireframeGeometry=Nc;k.WireframeHelper=function(a,b){console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead.");return new da(new Nc(a.geometry),new ja({color:void 0!==b?b:16777215}))};k.WrapAroundEnding=2402;k.XHRLoader=function(a){console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader.");
|
|
|
+return new Ra(a)};k.ZeroCurvatureEnding=2400;k.ZeroFactor=200;k.ZeroSlopeEnding=2401;k.ZeroStencilOp=0;k.sRGBEncoding=3001;Object.defineProperty(k,"__esModule",{value:!0})});
|