|
@@ -56,7 +56,7 @@ k};this.setIndex=function(k){g=k.type;h=k.bytesPerElement};this.render=function(
|
|
|
{frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:a,programs:null,autoReset:!0,reset:function(){a.frame++;a.calls=0;a.triangles=0;a.points=0;a.lines=0},update:function(b,d,e){a.calls++;switch(d){case 4:a.triangles+=b/3*e;break;case 1:a.lines+=b/2*e;break;case 3:a.lines+=e*(b-1);break;case 2:a.lines+=e*b;break;case 0:a.points+=e*b;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",d)}}}}function xk(c,a){return c[0]-a[0]}function yk(c,a){return Math.abs(a[1])-
|
|
|
Math.abs(c[1])}function zk(c){for(var a={},b=new Float32Array(8),d=[],e=0;8>e;e++)d[e]=[e,0];return{update:function(f,g,h,k){var l=f.morphTargetInfluences;f=void 0===l?0:l.length;var m=a[g.id];if(void 0===m){m=[];for(var n=0;n<f;n++)m[n]=[n,0];a[g.id]=m}for(n=0;n<f;n++){var p=m[n];p[0]=n;p[1]=l[n]}m.sort(yk);for(l=0;8>l;l++)l<f&&m[l][1]?(d[l][0]=m[l][0],d[l][1]=m[l][1]):(d[l][0]=Number.MAX_SAFE_INTEGER,d[l][1]=0);d.sort(xk);f=h.morphTargets&&g.morphAttributes.position;h=h.morphNormals&&g.morphAttributes.normal;
|
|
|
for(l=m=0;8>l;l++)p=d[l],n=p[0],p=p[1],n!==Number.MAX_SAFE_INTEGER&&p?(f&&g.getAttribute("morphTarget"+l)!==f[n]&&g.setAttribute("morphTarget"+l,f[n]),h&&g.getAttribute("morphNormal"+l)!==h[n]&&g.setAttribute("morphNormal"+l,h[n]),b[l]=p,m+=p):(f&&void 0!==g.getAttribute("morphTarget"+l)&&g.deleteAttribute("morphTarget"+l),h&&void 0!==g.getAttribute("morphNormal"+l)&&g.deleteAttribute("morphNormal"+l),b[l]=0);g=g.morphTargetsRelative?1:1-m;k.getUniforms().setValue(c,"morphTargetBaseInfluence",g);
|
|
|
-k.getUniforms().setValue(c,"morphTargetInfluences",b)}}}function Ak(c,a,b,d){var e=new WeakMap;return{update:function(f){var g=d.render.frame,h=f.geometry,k=a.get(f,h);e.get(k)!==g&&(h.isGeometry&&k.updateFromObject(f),a.update(k),e.set(k,g));f.isInstancedMesh&&(b.update(f.instanceMatrix,34962),null!==f.instanceColor&&b.update(f.instanceColor,34962));return k},dispose:function(){e=new WeakMap}}}function lc(c,a,b,d,e,f,g,h,k,l){c=void 0!==c?c:[];Oa.call(this,c,void 0!==a?a:301,b,d,e,f,void 0!==g?g:
|
|
|
+k.getUniforms().setValue(c,"morphTargetInfluences",b)}}}function Ak(c,a,b,d){var e=new WeakMap;return{update:function(f){var g=d.render.frame,h=f.geometry,k=a.get(f,h);e.get(k)!==g&&(h.isGeometry&&k.updateFromObject(f),a.update(k),e.set(k,g));f.isInstancedMesh&&(b.update(f.instanceMatrix,34962),null!==f.instanceColor&&b.update(f.instanceColor,34962));return k},dispose:function(){e=new WeakMap}}}function kc(c,a,b,d,e,f,g,h,k,l){c=void 0!==c?c:[];Oa.call(this,c,void 0!==a?a:301,b,d,e,f,void 0!==g?g:
|
|
|
1022,h,k,l);this.flipY=!1}function Jd(c,a,b,d){Oa.call(this,null);this.image={data:c||null,width:a||1,height:b||1,depth:d||1};this.minFilter=this.magFilter=1003;this.wrapR=1001;this.flipY=this.generateMipmaps=!1;this.needsUpdate=!0}function Kd(c,a,b,d){Oa.call(this,null);this.image={data:c||null,width:a||1,height:b||1,depth:d||1};this.minFilter=this.magFilter=1003;this.wrapR=1001;this.flipY=this.generateMipmaps=!1;this.needsUpdate=!0}function Ld(c,a,b){var d=c[0];if(0>=d||0<d)return c;var e=a*b,f=
|
|
|
yi[e];void 0===f&&(f=new Float32Array(e),yi[e]=f);if(0!==a)for(d.toArray(f,0),d=1,e=0;d!==a;++d)e+=b,c[d].toArray(f,e);return f}function Mb(c,a){if(c.length!==a.length)return!1;for(var b=0,d=c.length;b<d;b++)if(c[b]!==a[b])return!1;return!0}function Fb(c,a){for(var b=0,d=a.length;b<d;b++)c[b]=a[b]}function zi(c,a){var b=Ai[a];void 0===b&&(b=new Int32Array(a),Ai[a]=b);for(var d=0;d!==a;++d)b[d]=c.allocateTextureUnit();return b}function Bk(c,a){var b=this.cache;b[0]!==a&&(c.uniform1f(this.addr,a),b[0]=
|
|
|
a)}function Ck(c,a){var b=this.cache;if(void 0!==a.x){if(b[0]!==a.x||b[1]!==a.y)c.uniform2f(this.addr,a.x,a.y),b[0]=a.x,b[1]=a.y}else Mb(b,a)||(c.uniform2fv(this.addr,a),Fb(b,a))}function Dk(c,a){var b=this.cache;if(void 0!==a.x){if(b[0]!==a.x||b[1]!==a.y||b[2]!==a.z)c.uniform3f(this.addr,a.x,a.y,a.z),b[0]=a.x,b[1]=a.y,b[2]=a.z}else if(void 0!==a.r){if(b[0]!==a.r||b[1]!==a.g||b[2]!==a.b)c.uniform3f(this.addr,a.r,a.g,a.b),b[0]=a.r,b[1]=a.g,b[2]=a.b}else Mb(b,a)||(c.uniform3fv(this.addr,a),Fb(b,a))}
|
|
@@ -124,7 +124,7 @@ d,V=G.customDepthMaterial;!0===H.isPointLight&&(P=e,V=G.customDistanceMaterial);
|
|
|
F);return G}function g(G,I,E,H,M){if(!1!==G.visible){if(G.layers.test(I.layers)&&(G.isMesh||G.isLine||G.isPoints)&&(G.castShadow||G.receiveShadow&&3===M)&&(!G.frustumCulled||h.intersectsObject(G))){G.modelViewMatrix.multiplyMatrices(E.matrixWorldInverse,G.matrixWorld);var F=a.update(G),K=G.material;if(Array.isArray(K))for(var P=F.groups,V=0,ia=P.length;V<ia;V++){var W=P[V],aa=K[W.materialIndex];aa&&aa.visible&&(aa=f(G,F,aa,H,E.near,E.far,M),c.renderBufferDirect(E,null,F,aa,G,W))}else K.visible&&(K=
|
|
|
f(G,F,K,H,E.near,E.far,M),c.renderBufferDirect(E,null,F,K,G,null))}G=G.children;F=0;for(K=G.length;F<K;F++)g(G[F],I,E,H,M)}}var h=new xb,k=new L,l=new L,m=new ca,n=[],p=[],t={},q={0:1,1:0,2:2},v=new sb({defines:{SAMPLE_RATE:.25,HALF_SAMPLE_RATE:.125},uniforms:{shadow_pass:{value:null},resolution:{value:new L},radius:{value:4}},vertexShader:"void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",fragmentShader:"uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include <packing>\nvoid main() {\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy ) / resolution ) );\n\tfor ( float i = -1.0; i < 1.0 ; i += SAMPLE_RATE) {\n\t\t#ifdef HORIZONAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( i, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, i ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean * HALF_SAMPLE_RATE;\n\tsquared_mean = squared_mean * HALF_SAMPLE_RATE;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}"}),
|
|
|
u=v.clone();u.defines.HORIZONAL_PASS=1;var A=new ka;A.setAttribute("position",new pa(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));var B=new Qa(A,v),D=this;this.enabled=!1;this.autoUpdate=!0;this.needsUpdate=!1;this.type=1;this.render=function(G,I,E){if(!1!==D.enabled&&(!1!==D.autoUpdate||!1!==D.needsUpdate)&&0!==G.length){var H=c.getRenderTarget(),M=c.getActiveCubeFace(),F=c.getActiveMipmapLevel(),K=c.state;K.setBlending(0);K.buffers.color.setClear(1,1,1,1);K.buffers.depth.setTest(!0);K.setScissorTest(!1);
|
|
|
-for(var P=0,V=G.length;P<V;P++){var ia=G[P],W=ia.shadow;if(!1!==W.autoUpdate||!1!==W.needsUpdate)if(void 0===W)console.warn("THREE.WebGLShadowMap:",ia,"has no shadow.");else{k.copy(W.mapSize);var aa=W.getFrameExtents();k.multiply(aa);l.copy(W.mapSize);if(k.x>b||k.y>b)k.x>b&&(l.x=Math.floor(b/aa.x),k.x=l.x*aa.x,W.mapSize.x=l.x),k.y>b&&(l.y=Math.floor(b/aa.y),k.y=l.y*aa.y,W.mapSize.y=l.y);null!==W.map||W.isPointLightShadow||3!==this.type||(aa={minFilter:1006,magFilter:1006,format:1023},W.map=new Eb(k.x,
|
|
|
+for(var P=0,V=G.length;P<V;P++){var ia=G[P],W=ia.shadow;if(void 0===W)console.warn("THREE.WebGLShadowMap:",ia,"has no shadow.");else if(!1!==W.autoUpdate||!1!==W.needsUpdate){k.copy(W.mapSize);var aa=W.getFrameExtents();k.multiply(aa);l.copy(W.mapSize);if(k.x>b||k.y>b)k.x>b&&(l.x=Math.floor(b/aa.x),k.x=l.x*aa.x,W.mapSize.x=l.x),k.y>b&&(l.y=Math.floor(b/aa.y),k.y=l.y*aa.y,W.mapSize.y=l.y);null!==W.map||W.isPointLightShadow||3!==this.type||(aa={minFilter:1006,magFilter:1006,format:1023},W.map=new Eb(k.x,
|
|
|
k.y,aa),W.map.texture.name=ia.name+".shadowMap",W.mapPass=new Eb(k.x,k.y,aa),W.camera.updateProjectionMatrix());null===W.map&&(W.map=new Eb(k.x,k.y,{minFilter:1003,magFilter:1003,format:1023}),W.map.texture.name=ia.name+".shadowMap",W.camera.updateProjectionMatrix());c.setRenderTarget(W.map);c.clear();aa=W.getViewportCount();for(var Z=0;Z<aa;Z++){var ja=W.getViewport(Z);m.set(l.x*ja.x,l.y*ja.y,l.x*ja.z,l.y*ja.w);K.viewport(m);W.updateMatrices(ia,Z);h=W.getFrustum();g(I,E,W.camera,ia,this.type)}W.isPointLightShadow||
|
|
|
3!==this.type||(ia=W,aa=E,Z=a.update(B),v.uniforms.shadow_pass.value=ia.map.texture,v.uniforms.resolution.value=ia.mapSize,v.uniforms.radius.value=ia.radius,c.setRenderTarget(ia.mapPass),c.clear(),c.renderBufferDirect(aa,null,Z,v,B,null),u.uniforms.shadow_pass.value=ia.mapPass.texture,u.uniforms.resolution.value=ia.mapSize,u.uniforms.radius.value=ia.radius,c.setRenderTarget(ia.map),c.clear(),c.renderBufferDirect(aa,null,Z,u,B,null));W.needsUpdate=!1}}D.needsUpdate=!1;c.setRenderTarget(H,M,F)}}}function Cl(c,
|
|
|
a,b){function d(y,Q,T){var ba=new Uint8Array(4),X=c.createTexture();c.bindTexture(y,X);c.texParameteri(y,10241,9728);c.texParameteri(y,10240,9728);for(y=0;y<T;y++)c.texImage2D(Q+y,0,6408,1,1,0,6408,5121,ba);return X}function e(y){!0!==q[y]&&(c.enable(y),q[y]=!0)}function f(y){!1!==q[y]&&(c.disable(y),q[y]=!1)}function g(y,Q,T,ba,X,ta,va,ya){if(0===y)u&&(f(3042),u=!1);else if(u||(e(3042),u=!0),5!==y){if(y!==A||ya!==M){if(100!==B||100!==I)c.blendEquation(32774),I=B=100;if(ya)switch(y){case 1:c.blendFuncSeparate(1,
|
|
@@ -191,17 +191,17 @@ d.displacementBias.value=e.displacementBias);else if(e.isMeshDepthMaterial)a(d,e
|
|
|
e.nearDistance,d.farDistance.value=e.farDistance;else if(e.isMeshNormalMaterial)a(d,e),e.bumpMap&&(d.bumpMap.value=e.bumpMap,d.bumpScale.value=e.bumpScale,1===e.side&&(d.bumpScale.value*=-1)),e.normalMap&&(d.normalMap.value=e.normalMap,d.normalScale.value.copy(e.normalScale),1===e.side&&d.normalScale.value.negate()),e.displacementMap&&(d.displacementMap.value=e.displacementMap,d.displacementScale.value=e.displacementScale,d.displacementBias.value=e.displacementBias);else if(e.isLineBasicMaterial)d.diffuse.value.copy(e.color),
|
|
|
d.opacity.value=e.opacity,e.isLineDashedMaterial&&(d.dashSize.value=e.dashSize,d.totalSize.value=e.dashSize+e.gapSize,d.scale.value=e.scale);else if(e.isPointsMaterial){d.diffuse.value.copy(e.color);d.opacity.value=e.opacity;d.size.value=e.size*f;d.scale.value=.5*g;e.map&&(d.map.value=e.map);e.alphaMap&&(d.alphaMap.value=e.alphaMap);if(e.map)var h=e.map;else e.alphaMap&&(h=e.alphaMap);void 0!==h&&(!0===h.matrixAutoUpdate&&h.updateMatrix(),d.uvTransform.value.copy(h.matrix))}else if(e.isSpriteMaterial){d.diffuse.value.copy(e.color);
|
|
|
d.opacity.value=e.opacity;d.rotation.value=e.rotation;e.map&&(d.map.value=e.map);e.alphaMap&&(d.alphaMap.value=e.alphaMap);if(e.map)var k=e.map;else e.alphaMap&&(k=e.alphaMap);void 0!==k&&(!0===k.matrixAutoUpdate&&k.updateMatrix(),d.uvTransform.value.copy(k.matrix))}else e.isShadowMaterial?(d.color.value.copy(e.color),d.opacity.value=e.opacity):e.isShaderMaterial&&(e.uniformsNeedUpdate=!1)}}}function Oe(c){function a(x,N){for(var J=0;J<x.length;J++){var O=t.getContext(x[J],N);if(null!==O)return O}return null}
|
|
|
-function b(){qa=new tk(R);Ea=new qk(R,qa,c);!1===Ea.isWebGL2&&(qa.get("WEBGL_depth_texture"),qa.get("OES_texture_float"),qa.get("OES_texture_half_float"),qa.get("OES_texture_half_float_linear"),qa.get("OES_standard_derivatives"),qa.get("OES_element_index_uint"),qa.get("OES_vertex_array_object"),qa.get("ANGLE_instanced_arrays"));qa.get("OES_texture_float_linear");mc=new Vi(R,qa,Ea);Ca=new Cl(R,qa,Ea);Ca.scissor(bb.copy(X).multiplyScalar(y).floor());Ca.viewport(Xa.copy(ba).multiplyScalar(y).floor());
|
|
|
-Ka=new wk(R);Ra=new sl;kb=new Dl(R,qa,Ca,Ra,Ea,mc,Ka);nc=new sk(F);Pe=new mk(R,Ea);Gb=new ok(R,qa,Pe,Ea);ph=new uk(R,Pe,Ka,Gb);Md=new Ak(R,ph,Pe,Ka);Xi=new zk(R);Rb=new rk(Ra);ed=new rl(F,nc,qa,Ea,Gb,Rb);qh=new El(Ra);Vf=new vl(Ra);Nd=new Bl;Ic=new nk(F,nc,Ca,Md,D);Yi=new pk(R,qa,Ka,Ea);Zi=new vk(R,qa,Ka,Ea);Ka.programs=ed.programs;F.capabilities=Ea;F.extensions=qa;F.properties=Ra;F.renderLists=Vf;F.state=Ca;F.info=Ka}function d(x){x.preventDefault();console.log("THREE.WebGLRenderer: Context Lost.");
|
|
|
+function b(){qa=new tk(R);Ea=new qk(R,qa,c);!1===Ea.isWebGL2&&(qa.get("WEBGL_depth_texture"),qa.get("OES_texture_float"),qa.get("OES_texture_half_float"),qa.get("OES_texture_half_float_linear"),qa.get("OES_standard_derivatives"),qa.get("OES_element_index_uint"),qa.get("OES_vertex_array_object"),qa.get("ANGLE_instanced_arrays"));qa.get("OES_texture_float_linear");lc=new Vi(R,qa,Ea);Ca=new Cl(R,qa,Ea);Ca.scissor(bb.copy(X).multiplyScalar(y).floor());Ca.viewport(Xa.copy(ba).multiplyScalar(y).floor());
|
|
|
+Ka=new wk(R);Ra=new sl;kb=new Dl(R,qa,Ca,Ra,Ea,lc,Ka);mc=new sk(F);Pe=new mk(R,Ea);Gb=new ok(R,qa,Pe,Ea);ph=new uk(R,Pe,Ka,Gb);Md=new Ak(R,ph,Pe,Ka);Xi=new zk(R);Rb=new rk(Ra);ed=new rl(F,mc,qa,Ea,Gb,Rb);qh=new El(Ra);Vf=new vl(Ra);Nd=new Bl;Ic=new nk(F,mc,Ca,Md,D);Yi=new pk(R,qa,Ka,Ea);Zi=new vk(R,qa,Ka,Ea);Ka.programs=ed.programs;F.capabilities=Ea;F.extensions=qa;F.properties=Ra;F.renderLists=Vf;F.state=Ca;F.info=Ka}function d(x){x.preventDefault();console.log("THREE.WebGLRenderer: Context Lost.");
|
|
|
K=!0}function e(){console.log("THREE.WebGLRenderer: Context Restored.");K=!1;b()}function f(x){x=x.target;x.removeEventListener("dispose",f);g(x);Ra.remove(x)}function g(x){x=Ra.get(x).program;void 0!==x&&ed.releaseProgram(x)}function h(x,N){x.render(function(J){F.renderBufferImmediate(J,N)})}function k(x,N,J,O){if(!1!==x.visible){if(x.layers.test(N.layers))if(x.isGroup)J=x.renderOrder;else if(x.isLOD)!0===x.autoUpdate&&x.update(N);else if(x.isLight)M.pushLight(x),x.castShadow&&M.pushShadow(x);else if(x.isSprite){if(!x.frustumCulled||
|
|
|
va.intersectsSprite(x)){O&&la.setFromMatrixPosition(x.matrixWorld).applyMatrix4(U);var Y=Md.update(x),ma=x.material;ma.visible&&H.push(x,Y,ma,J,la.z,null)}}else if(x.isImmediateRenderObject)O&&la.setFromMatrixPosition(x.matrixWorld).applyMatrix4(U),H.push(x,null,x.material,J,la.z,null);else if(x.isMesh||x.isLine||x.isPoints)if(x.isSkinnedMesh&&x.skeleton.frame!==Ka.render.frame&&(x.skeleton.update(),x.skeleton.frame=Ka.render.frame),!x.frustumCulled||va.intersectsObject(x))if(O&&la.setFromMatrixPosition(x.matrixWorld).applyMatrix4(U),
|
|
|
Y=Md.update(x),ma=x.material,Array.isArray(ma))for(var na=Y.groups,Ha=0,Fa=na.length;Ha<Fa;Ha++){var ib=na[Ha],Ia=ma[ib.materialIndex];Ia&&Ia.visible&&H.push(x,Y,Ia,J,la.z,ib)}else ma.visible&&H.push(x,Y,ma,J,la.z,null);x=x.children;Y=0;for(ma=x.length;Y<ma;Y++)k(x[Y],N,J,O)}}function l(x,N,J){for(var O=!0===N.isScene?N.overrideMaterial:null,Y=0,ma=x.length;Y<ma;Y++){var na=x[Y],Ha=na.object,Fa=na.geometry,ib=null===O?na.material:O;na=na.group;if(J.isArrayCamera){Aa=J;for(var Ia=J.cameras,fd=0,rh=
|
|
|
Ia.length;fd<rh;fd++){var Wf=Ia[fd];Ha.layers.test(Wf.layers)&&(Ca.viewport(Xa.copy(Wf.viewport)),M.setupLights(Wf),m(Ha,N,Wf,Fa,ib,na))}}else Aa=null,m(Ha,N,J,Fa,ib,na)}}function m(x,N,J,O,Y,ma){x.onBeforeRender(F,N,J,O,Y,ma);M=Nd.get(N,Aa||J);x.modelViewMatrix.multiplyMatrices(J.matrixWorldInverse,x.matrixWorld);x.normalMatrix.getNormalMatrix(x.modelViewMatrix);if(x.isImmediateRenderObject){var na=p(J,N,Y,x);Ca.setMaterial(Y);Gb.reset();h(x,na)}else F.renderBufferDirect(J,N,O,Y,x,ma);x.onAfterRender(F,
|
|
|
-N,J,O,Y,ma);M=Nd.get(N,Aa||J)}function n(x,N,J){!0!==N.isScene&&(N=wa);var O=Ra.get(x),Y=M.state.lights,ma=Y.state.version;J=ed.getParameters(x,Y.state,M.state.shadowsArray,N,J);var na=ed.getProgramCacheKey(J),Ha=O.program,Fa=!0;if(void 0===Ha)x.addEventListener("dispose",f);else if(Ha.cacheKey!==na)g(x);else{if(O.lightsStateVersion===ma&&void 0!==J.shaderID){N=x.isMeshStandardMaterial?N.environment:null;O.envMap=nc.get(x.envMap||N);return}Fa=!1}Fa&&(J.uniforms=ed.getUniforms(x),x.onBeforeCompile(J,
|
|
|
-F),Ha=ed.acquireProgram(J,na),O.program=Ha,O.uniforms=J.uniforms,O.outputEncoding=J.outputEncoding);J=O.uniforms;if(!x.isShaderMaterial&&!x.isRawShaderMaterial||!0===x.clipping)O.numClippingPlanes=Rb.numPlanes,O.numIntersection=Rb.numIntersection,J.clippingPlanes=Rb.uniform;O.environment=x.isMeshStandardMaterial?N.environment:null;O.fog=N.fog;O.envMap=nc.get(x.envMap||O.environment);O.needsLights=x.isMeshLambertMaterial||x.isMeshToonMaterial||x.isMeshPhongMaterial||x.isMeshStandardMaterial||x.isShadowMaterial||
|
|
|
+N,J,O,Y,ma);M=Nd.get(N,Aa||J)}function n(x,N,J){!0!==N.isScene&&(N=wa);var O=Ra.get(x),Y=M.state.lights,ma=Y.state.version;J=ed.getParameters(x,Y.state,M.state.shadowsArray,N,J);var na=ed.getProgramCacheKey(J),Ha=O.program,Fa=!0;if(void 0===Ha)x.addEventListener("dispose",f);else if(Ha.cacheKey!==na)g(x);else{if(O.lightsStateVersion===ma&&void 0!==J.shaderID){N=x.isMeshStandardMaterial?N.environment:null;O.envMap=mc.get(x.envMap||N);return}Fa=!1}Fa&&(J.uniforms=ed.getUniforms(x),x.onBeforeCompile(J,
|
|
|
+F),Ha=ed.acquireProgram(J,na),O.program=Ha,O.uniforms=J.uniforms,O.outputEncoding=J.outputEncoding);J=O.uniforms;if(!x.isShaderMaterial&&!x.isRawShaderMaterial||!0===x.clipping)O.numClippingPlanes=Rb.numPlanes,O.numIntersection=Rb.numIntersection,J.clippingPlanes=Rb.uniform;O.environment=x.isMeshStandardMaterial?N.environment:null;O.fog=N.fog;O.envMap=mc.get(x.envMap||O.environment);O.needsLights=x.isMeshLambertMaterial||x.isMeshToonMaterial||x.isMeshPhongMaterial||x.isMeshStandardMaterial||x.isShadowMaterial||
|
|
|
x.isShaderMaterial&&!0===x.lights;O.lightsStateVersion=ma;O.needsLights&&(J.ambientLightColor.value=Y.state.ambient,J.lightProbe.value=Y.state.probe,J.directionalLights.value=Y.state.directional,J.directionalLightShadows.value=Y.state.directionalShadow,J.spotLights.value=Y.state.spot,J.spotLightShadows.value=Y.state.spotShadow,J.rectAreaLights.value=Y.state.rectArea,J.ltc_1.value=Y.state.rectAreaLTC1,J.ltc_2.value=Y.state.rectAreaLTC2,J.pointLights.value=Y.state.point,J.pointLightShadows.value=Y.state.pointShadow,
|
|
|
J.hemisphereLights.value=Y.state.hemi,J.directionalShadowMap.value=Y.state.directionalShadowMap,J.directionalShadowMatrix.value=Y.state.directionalShadowMatrix,J.spotShadowMap.value=Y.state.spotShadowMap,J.spotShadowMatrix.value=Y.state.spotShadowMatrix,J.pointShadowMap.value=Y.state.pointShadowMap,J.pointShadowMatrix.value=Y.state.pointShadowMatrix);x=O.program.getUniforms();x=Ec.seqWithValue(x.seq,J);O.uniformsList=x}function p(x,N,J,O){!0!==N.isScene&&(N=wa);kb.resetTextureUnits();var Y=N.fog,
|
|
|
-ma=J.isMeshStandardMaterial?N.environment:null,na=null===W?F.outputEncoding:W.texture.encoding,Ha=nc.get(J.envMap||ma),Fa=Ra.get(J),ib=M.state.lights;!0!==ya||!0!==Pa&&x===ja||Rb.setState(J,x,x===ja&&J.id===Z);J.version===Fa.__version?J.fog&&Fa.fog!==Y?n(J,N,O):Fa.environment!==ma?n(J,N,O):Fa.needsLights&&Fa.lightsStateVersion!==ib.state.version?n(J,N,O):void 0===Fa.numClippingPlanes||Fa.numClippingPlanes===Rb.numPlanes&&Fa.numIntersection===Rb.numIntersection?Fa.outputEncoding!==na?n(J,N,O):Fa.envMap!==
|
|
|
+ma=J.isMeshStandardMaterial?N.environment:null,na=null===W?F.outputEncoding:W.texture.encoding,Ha=mc.get(J.envMap||ma),Fa=Ra.get(J),ib=M.state.lights;!0!==ya||!0!==Pa&&x===ja||Rb.setState(J,x,x===ja&&J.id===Z);J.version===Fa.__version?J.fog&&Fa.fog!==Y?n(J,N,O):Fa.environment!==ma?n(J,N,O):Fa.needsLights&&Fa.lightsStateVersion!==ib.state.version?n(J,N,O):void 0===Fa.numClippingPlanes||Fa.numClippingPlanes===Rb.numPlanes&&Fa.numIntersection===Rb.numIntersection?Fa.outputEncoding!==na?n(J,N,O):Fa.envMap!==
|
|
|
Ha&&n(J,N,O):n(J,N,O):(n(J,N,O),Fa.__version=J.version);var Ia=!1;ib=Ha=!1;N=Fa.program;ma=N.getUniforms();na=Fa.uniforms;Ca.useProgram(N.program)&&(ib=Ha=Ia=!0);J.id!==Z&&(Z=J.id,Ha=!0);if(Ia||ja!==x){ma.setValue(R,"projectionMatrix",x.projectionMatrix);Ea.logarithmicDepthBuffer&&ma.setValue(R,"logDepthBufFC",2/(Math.log(x.far+1)/Math.LN2));ja!==x&&(ja=x,ib=Ha=!0);if(J.isShaderMaterial||J.isMeshPhongMaterial||J.isMeshToonMaterial||J.isMeshStandardMaterial||J.envMap)Ia=ma.map.cameraPosition,void 0!==
|
|
|
Ia&&Ia.setValue(R,la.setFromMatrixPosition(x.matrixWorld));(J.isMeshPhongMaterial||J.isMeshToonMaterial||J.isMeshLambertMaterial||J.isMeshBasicMaterial||J.isMeshStandardMaterial||J.isShaderMaterial)&&ma.setValue(R,"isOrthographic",!0===x.isOrthographicCamera);(J.isMeshPhongMaterial||J.isMeshToonMaterial||J.isMeshLambertMaterial||J.isMeshBasicMaterial||J.isMeshStandardMaterial||J.isShaderMaterial||J.isShadowMaterial||J.skinning)&&ma.setValue(R,"viewMatrix",x.matrixWorldInverse)}if(J.skinning&&(ma.setOptional(R,
|
|
|
O,"bindMatrix"),ma.setOptional(R,O,"bindMatrixInverse"),x=O.skeleton))if(Ia=x.bones,Ea.floatVertexTextures){if(void 0===x.boneTexture){Ia=Math.sqrt(4*Ia.length);Ia=xa.ceilPowerOfTwo(Ia);Ia=Math.max(Ia,4);var fd=new Float32Array(Ia*Ia*4);fd.set(x.boneMatrices);var rh=new cd(fd,Ia,Ia,1023,1015);x.boneMatrices=fd;x.boneTexture=rh;x.boneTextureSize=Ia}ma.setValue(R,"boneTexture",x.boneTexture,kb);ma.setValue(R,"boneTextureSize",x.boneTextureSize)}else ma.setOptional(R,x,"boneMatrices");if(Ha||Fa.receiveShadow!==
|
|
@@ -210,12 +210,12 @@ x),Y&&J.fog&&qh.refreshFogUniforms(na,Y),qh.refreshMaterialUniforms(na,J,y,C),Ec
|
|
|
"canvas"),q=void 0!==c.context?c.context:null,v=void 0!==c.alpha?c.alpha:!1,u=void 0!==c.depth?c.depth:!0,A=void 0!==c.stencil?c.stencil:!0,B=void 0!==c.antialias?c.antialias:!1,D=void 0!==c.premultipliedAlpha?c.premultipliedAlpha:!0,G=void 0!==c.preserveDrawingBuffer?c.preserveDrawingBuffer:!1,I=void 0!==c.powerPreference?c.powerPreference:"default",E=void 0!==c.failIfMajorPerformanceCaveat?c.failIfMajorPerformanceCaveat:!1,H=null,M=null;this.domElement=t;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 F=this,K=!1,P=null,V=0,ia=0,W=null,aa=null,Z=-1,ja=null,Aa=null,Xa=new ca,bb=new ca,fb=null,z=t.width,C=t.height,y=1,Q=null,T=null,ba=new ca(0,0,z,C),X=new ca(0,0,z,C),ta=!1,va=new xb,ya=!1,Pa=!1,U=
|
|
|
new da,la=new w,wa={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0},R=q;try{q={alpha:v,depth:u,stencil:A,antialias:B,premultipliedAlpha:D,preserveDrawingBuffer:G,powerPreference:I,failIfMajorPerformanceCaveat:E};t.addEventListener("webglcontextlost",d,!1);t.addEventListener("webglcontextrestored",e,!1);if(null===R&&(v=["webgl2","webgl","experimental-webgl"],!0===F.isWebGL1Renderer&&v.shift(),R=a(v,q),null===R)){if(a(v))throw Error("Error creating WebGL context with your selected attributes.");
|
|
|
-throw Error("Error creating WebGL context.");}void 0===R.getShaderPrecisionFormat&&(R.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(x){throw console.error("THREE.WebGLRenderer: "+x.message),x;}var qa,Ea,Ca,Ka,Ra,kb,nc,Pe,ph,Md,ed,qh,Vf,Nd,Rb,Ic,Xi,Yi,Zi,mc,Gb;b();var Jc=new Wi(F,R);this.xr=Jc;var $i=new Ui(F,Md,Ea.maxTextureSize);this.shadowMap=$i;this.getContext=function(){return R};this.getContextAttributes=function(){return R.getContextAttributes()};this.forceContextLoss=
|
|
|
+throw Error("Error creating WebGL context.");}void 0===R.getShaderPrecisionFormat&&(R.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(x){throw console.error("THREE.WebGLRenderer: "+x.message),x;}var qa,Ea,Ca,Ka,Ra,kb,mc,Pe,ph,Md,ed,qh,Vf,Nd,Rb,Ic,Xi,Yi,Zi,lc,Gb;b();var Jc=new Wi(F,R);this.xr=Jc;var $i=new Ui(F,Md,Ea.maxTextureSize);this.shadowMap=$i;this.getContext=function(){return R};this.getContextAttributes=function(){return R.getContextAttributes()};this.forceContextLoss=
|
|
|
function(){var x=qa.get("WEBGL_lose_context");x&&x.loseContext()};this.forceContextRestore=function(){var x=qa.get("WEBGL_lose_context");x&&x.restoreContext()};this.getPixelRatio=function(){return y};this.setPixelRatio=function(x){void 0!==x&&(y=x,this.setSize(z,C,!1))};this.getSize=function(x){void 0===x&&(console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"),x=new L);return x.set(z,C)};this.setSize=function(x,N,J){Jc.isPresenting?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):
|
|
|
(z=x,C=N,t.width=Math.floor(x*y),t.height=Math.floor(N*y),!1!==J&&(t.style.width=x+"px",t.style.height=N+"px"),this.setViewport(0,0,x,N))};this.getDrawingBufferSize=function(x){void 0===x&&(console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"),x=new L);return x.set(z*y,C*y).floor()};this.setDrawingBufferSize=function(x,N,J){z=x;C=N;y=J;t.width=Math.floor(x*J);t.height=Math.floor(N*J);this.setViewport(0,0,x,N)};this.getCurrentViewport=function(x){void 0===x&&
|
|
|
(console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"),x=new ca);return x.copy(Xa)};this.getViewport=function(x){return x.copy(ba)};this.setViewport=function(x,N,J,O){x.isVector4?ba.set(x.x,x.y,x.z,x.w):ba.set(x,N,J,O);Ca.viewport(Xa.copy(ba).multiplyScalar(y).floor())};this.getScissor=function(x){return x.copy(X)};this.setScissor=function(x,N,J,O){x.isVector4?X.set(x.x,x.y,x.z,x.w):X.set(x,N,J,O);Ca.scissor(bb.copy(X).multiplyScalar(y).floor())};this.getScissorTest=
|
|
|
function(){return ta};this.setScissorTest=function(x){Ca.setScissorTest(ta=x)};this.setOpaqueSort=function(x){Q=x};this.setTransparentSort=function(x){T=x};this.getClearColor=function(){return Ic.getClearColor()};this.setClearColor=function(){Ic.setClearColor.apply(Ic,arguments)};this.getClearAlpha=function(){return Ic.getClearAlpha()};this.setClearAlpha=function(){Ic.setClearAlpha.apply(Ic,arguments)};this.clear=function(x,N,J){var O=0;if(void 0===x||x)O|=16384;if(void 0===N||N)O|=256;if(void 0===
|
|
|
-J||J)O|=1024;R.clear(O)};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(){t.removeEventListener("webglcontextlost",d,!1);t.removeEventListener("webglcontextrestored",e,!1);Vf.dispose();Nd.dispose();Ra.dispose();nc.dispose();Md.dispose();Gb.dispose();Jc.dispose();Qe.stop()};this.renderBufferImmediate=function(x,N){Gb.initAttributes();var J=Ra.get(x);x.hasPositions&&!J.position&&
|
|
|
+J||J)O|=1024;R.clear(O)};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(){t.removeEventListener("webglcontextlost",d,!1);t.removeEventListener("webglcontextrestored",e,!1);Vf.dispose();Nd.dispose();Ra.dispose();mc.dispose();Md.dispose();Gb.dispose();Jc.dispose();Qe.stop()};this.renderBufferImmediate=function(x,N){Gb.initAttributes();var J=Ra.get(x);x.hasPositions&&!J.position&&
|
|
|
(J.position=R.createBuffer());x.hasNormals&&!J.normal&&(J.normal=R.createBuffer());x.hasUvs&&!J.uv&&(J.uv=R.createBuffer());x.hasColors&&!J.color&&(J.color=R.createBuffer());N=N.getAttributes();x.hasPositions&&(R.bindBuffer(34962,J.position),R.bufferData(34962,x.positionArray,35048),Gb.enableAttribute(N.position),R.vertexAttribPointer(N.position,3,5126,!1,0,0));x.hasNormals&&(R.bindBuffer(34962,J.normal),R.bufferData(34962,x.normalArray,35048),Gb.enableAttribute(N.normal),R.vertexAttribPointer(N.normal,
|
|
|
3,5126,!1,0,0));x.hasUvs&&(R.bindBuffer(34962,J.uv),R.bufferData(34962,x.uvArray,35048),Gb.enableAttribute(N.uv),R.vertexAttribPointer(N.uv,2,5126,!1,0,0));x.hasColors&&(R.bindBuffer(34962,J.color),R.bufferData(34962,x.colorArray,35048),Gb.enableAttribute(N.color),R.vertexAttribPointer(N.color,3,5126,!1,0,0));Gb.disableUnusedAttributes();R.drawArrays(4,0,x.count);x.count=0};this.renderBufferDirect=function(x,N,J,O,Y,ma){null===N&&(N=wa);var na=Y.isMesh&&0>Y.matrixWorld.determinant();x=p(x,N,O,Y);
|
|
|
Ca.setMaterial(O,na);na=J.index;N=J.attributes.position;if(null===na){if(void 0===N||0===N.count)return}else if(0===na.count)return;var Ha=1;!0===O.wireframe&&(na=ph.getWireframeAttribute(J),Ha=2);(O.morphTargets||O.morphNormals)&&Xi.update(Y,J,O,x);Gb.setup(Y,O,x,J,na);x=Yi;if(null!==na){var Fa=Pe.get(na);x=Zi;x.setIndex(Fa)}var ib=J.drawRange.start*Ha,Ia=null!==ma?ma.start*Ha:0;Fa=Math.max(ib,Ia);ma=Math.max(0,Math.min(null!==na?na.count:N.count,ib+J.drawRange.count*Ha,Ia+(null!==ma?ma.count*Ha:
|
|
@@ -226,10 +226,10 @@ Z=-1;ja=null;!0===x.autoUpdate&&x.updateMatrixWorld();null===N.parent&&N.updateM
|
|
|
x,N);M.setupLights(N);!0===ya&&Rb.endShadows();!0===this.info.autoReset&&this.info.reset();void 0!==Y&&this.setRenderTarget(Y);Ic.render(H,x,N,ma);J=H.opaque;O=H.transparent;0<J.length&&l(J,x,N);0<O.length&&l(O,x,N);if(!0===x.isScene)x.onAfterRender(F,x,N);null!==W&&(kb.updateRenderTargetMipmap(W),kb.updateMultisampleRenderTarget(W));Ca.buffers.depth.setTest(!0);Ca.buffers.depth.setMask(!0);Ca.buffers.color.setMask(!0);Ca.setPolygonOffset(!1);M=H=null}};this.setFramebuffer=function(x){P!==x&&null===
|
|
|
W&&R.bindFramebuffer(36160,x);P=x};this.getActiveCubeFace=function(){return V};this.getActiveMipmapLevel=function(){return ia};this.getRenderList=function(){return H};this.setRenderList=function(x){H=x};this.getRenderState=function(){return M};this.setRenderState=function(x){M=x};this.getRenderTarget=function(){return W};this.setRenderTarget=function(x,N,J){void 0===N&&(N=0);void 0===J&&(J=0);W=x;V=N;ia=J;x&&void 0===Ra.get(x).__webglFramebuffer&&kb.setupRenderTarget(x);var O=P,Y=!1;x?(O=Ra.get(x).__webglFramebuffer,
|
|
|
x.isWebGLCubeRenderTarget?(O=O[N],Y=!0):O=x.isWebGLMultisampleRenderTarget?Ra.get(x).__webglMultisampledFramebuffer:O,Xa.copy(x.viewport),bb.copy(x.scissor),fb=x.scissorTest):(Xa.copy(ba).multiplyScalar(y).floor(),bb.copy(X).multiplyScalar(y).floor(),fb=ta);aa!==O&&(R.bindFramebuffer(36160,O),aa=O);Ca.viewport(Xa);Ca.scissor(bb);Ca.setScissorTest(fb);Y&&(x=Ra.get(x.texture),R.framebufferTexture2D(36160,36064,34069+N,x.__webglTexture,J))};this.readRenderTargetPixels=function(x,N,J,O,Y,ma,na){if(x&&
|
|
|
-x.isWebGLRenderTarget){var Ha=Ra.get(x).__webglFramebuffer;x.isWebGLCubeRenderTarget&&void 0!==na&&(Ha=Ha[na]);if(Ha){na=!1;Ha!==aa&&(R.bindFramebuffer(36160,Ha),na=!0);try{var Fa=x.texture,ib=Fa.format,Ia=Fa.type;1023!==ib&&mc.convert(ib)!==R.getParameter(35739)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):1009===Ia||mc.convert(Ia)===R.getParameter(35738)||1015===Ia&&(Ea.isWebGL2||qa.get("OES_texture_float")||qa.get("WEBGL_color_buffer_float"))||
|
|
|
-1016===Ia&&(Ea.isWebGL2?qa.get("EXT_color_buffer_float"):qa.get("EXT_color_buffer_half_float"))?36053===R.checkFramebufferStatus(36160)?0<=N&&N<=x.width-O&&0<=J&&J<=x.height-Y&&R.readPixels(N,J,O,Y,mc.convert(ib),mc.convert(Ia),ma):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{na&&
|
|
|
-R.bindFramebuffer(36160,aa)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")};this.copyFramebufferToTexture=function(x,N,J){void 0===J&&(J=0);var O=Math.pow(2,-J),Y=Math.floor(N.image.width*O);O=Math.floor(N.image.height*O);var ma=mc.convert(N.format);kb.setTexture2D(N,0);R.copyTexImage2D(3553,J,ma,x.x,x.y,Y,O,0);Ca.unbindTexture()};this.copyTextureToTexture=function(x,N,J,O){void 0===O&&(O=0);var Y=N.image.width,ma=N.image.height,na=
|
|
|
-mc.convert(J.format),Ha=mc.convert(J.type);kb.setTexture2D(J,0);R.pixelStorei(37440,J.flipY);R.pixelStorei(37441,J.premultiplyAlpha);R.pixelStorei(3317,J.unpackAlignment);N.isDataTexture?R.texSubImage2D(3553,O,x.x,x.y,Y,ma,na,Ha,N.image.data):N.isCompressedTexture?R.compressedTexSubImage2D(3553,O,x.x,x.y,N.mipmaps[0].width,N.mipmaps[0].height,na,N.mipmaps[0].data):R.texSubImage2D(3553,O,x.x,x.y,na,Ha,N.image);0===O&&J.generateMipmaps&&R.generateMipmap(3553);Ca.unbindTexture()};this.initTexture=function(x){kb.setTexture2D(x,
|
|
|
+x.isWebGLRenderTarget){var Ha=Ra.get(x).__webglFramebuffer;x.isWebGLCubeRenderTarget&&void 0!==na&&(Ha=Ha[na]);if(Ha){na=!1;Ha!==aa&&(R.bindFramebuffer(36160,Ha),na=!0);try{var Fa=x.texture,ib=Fa.format,Ia=Fa.type;1023!==ib&&lc.convert(ib)!==R.getParameter(35739)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):1009===Ia||lc.convert(Ia)===R.getParameter(35738)||1015===Ia&&(Ea.isWebGL2||qa.get("OES_texture_float")||qa.get("WEBGL_color_buffer_float"))||
|
|
|
+1016===Ia&&(Ea.isWebGL2?qa.get("EXT_color_buffer_float"):qa.get("EXT_color_buffer_half_float"))?36053===R.checkFramebufferStatus(36160)?0<=N&&N<=x.width-O&&0<=J&&J<=x.height-Y&&R.readPixels(N,J,O,Y,lc.convert(ib),lc.convert(Ia),ma):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{na&&
|
|
|
+R.bindFramebuffer(36160,aa)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")};this.copyFramebufferToTexture=function(x,N,J){void 0===J&&(J=0);var O=Math.pow(2,-J),Y=Math.floor(N.image.width*O);O=Math.floor(N.image.height*O);var ma=lc.convert(N.format);kb.setTexture2D(N,0);R.copyTexImage2D(3553,J,ma,x.x,x.y,Y,O,0);Ca.unbindTexture()};this.copyTextureToTexture=function(x,N,J,O){void 0===O&&(O=0);var Y=N.image.width,ma=N.image.height,na=
|
|
|
+lc.convert(J.format),Ha=lc.convert(J.type);kb.setTexture2D(J,0);R.pixelStorei(37440,J.flipY);R.pixelStorei(37441,J.premultiplyAlpha);R.pixelStorei(3317,J.unpackAlignment);N.isDataTexture?R.texSubImage2D(3553,O,x.x,x.y,Y,ma,na,Ha,N.image.data):N.isCompressedTexture?R.compressedTexSubImage2D(3553,O,x.x,x.y,N.mipmaps[0].width,N.mipmaps[0].height,na,N.mipmaps[0].data):R.texSubImage2D(3553,O,x.x,x.y,na,Ha,N.image);0===O&&J.generateMipmaps&&R.generateMipmap(3553);Ca.unbindTexture()};this.initTexture=function(x){kb.setTexture2D(x,
|
|
|
0);Ca.unbindTexture()};"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}function th(c){Oe.call(this,c)}function Kc(){ha.call(this);Object.defineProperty(this,"isScene",{value:!0});this.type="Scene";this.overrideMaterial=this.fog=this.environment=this.background=null;this.autoUpdate=!0;"undefined"!==typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}function Hb(c,a){this.array=c;this.stride=
|
|
|
a;this.count=void 0!==c?c.length/a:0;this.usage=35044;this.updateRange={offset:0,count:-1};this.version=0;this.uuid=xa.generateUUID()}function Lc(c,a,b,d){this.name="";this.data=c;this.itemSize=a;this.offset=b;this.normalized=!0===d}function Mc(c){ra.call(this);this.type="SpriteMaterial";this.color=new S(16777215);this.alphaMap=this.map=null;this.rotation=0;this.transparent=this.sizeAttenuation=!0;this.setValues(c)}function Re(c){ha.call(this);this.type="Sprite";if(void 0===Od){Od=new ka;var a=new Float32Array([-.5,
|
|
|
-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]);a=new Hb(a,5);Od.setIndex([0,1,2,0,2,3]);Od.setAttribute("position",new Lc(a,3,0,!1));Od.setAttribute("uv",new Lc(a,2,3,!1))}this.geometry=Od;this.material=void 0!==c?c:new Mc;this.center=new L(.5,.5)}function Xf(c,a,b,d,e,f){Pd.subVectors(c,b).addScalar(.5).multiply(d);void 0!==e?(Se.x=f*Pd.x-e*Pd.y,Se.y=e*Pd.x+f*Pd.y):Se.copy(Pd);c.copy(a);c.x+=Se.x;c.y+=Se.y;c.applyMatrix4(aj)}function Te(){ha.call(this);this._currentLevel=0;this.type="LOD";Object.defineProperties(this,
|
|
@@ -270,9 +270,9 @@ h)-(c-g)*(f-h)&&0<=(c-g)*(d-h)-(b-g)*(a-h)&&0<=(b-g)*(f-h)-(e-g)*(d-h)}function
|
|
|
c?1:0>c?-1:0}function gf(c,a){return 0>ab(c.prev,c,c.next)?0<=ab(c,a,c.next)&&0<=ab(c,c.prev,a):0>ab(c,a,c.prev)||0>ab(c,c.next,a)}function ej(c,a){var b=new zh(c.i,c.x,c.y),d=new zh(a.i,a.x,a.y),e=c.next,f=a.prev;c.next=a;a.prev=c;b.next=e;e.prev=b;d.next=b;b.prev=d;f.next=d;d.prev=f;return d}function cj(c,a,b,d){c=new zh(c,a,b);d?(c.next=d.next,c.prev=d,d.next.prev=c,d.next=c):(c.prev=c,c.next=c);return c}function ef(c){c.next.prev=c.prev;c.prev.next=c.next;c.prevZ&&(c.prevZ.nextZ=c.nextZ);c.nextZ&&
|
|
|
(c.nextZ.prevZ=c.prevZ)}function zh(c,a,b){this.i=c;this.x=a;this.y=b;this.nextZ=this.prevZ=this.z=this.next=this.prev=null;this.steiner=!1}function fj(c){var a=c.length;2<a&&c[a-1].equals(c[0])&&c.pop()}function gj(c,a){for(var b=0;b<a.length;b++)c.push(a[b].x),c.push(a[b].y)}function id(c,a){sa.call(this);this.type="ExtrudeGeometry";this.parameters={shapes:c,options:a};this.fromBufferGeometry(new cc(c,a));this.mergeVertices()}function cc(c,a){function b(k){function l(U,la,wa){la||console.error("THREE.ExtrudeGeometry: vec does not exist");
|
|
|
return la.clone().multiplyScalar(wa).add(U)}function m(U,la,wa){var R=U.x-la.x;var qa=U.y-la.y;var Ea=wa.x-U.x;var Ca=wa.y-U.y,Ka=R*R+qa*qa;if(Math.abs(R*Ca-qa*Ea)>Number.EPSILON){var Ra=Math.sqrt(Ka),kb=Math.sqrt(Ea*Ea+Ca*Ca);Ka=la.x-qa/Ra;la=la.y+R/Ra;Ca=((wa.x-Ca/kb-Ka)*Ca-(wa.y+Ea/kb-la)*Ea)/(R*Ca-qa*Ea);Ea=Ka+R*Ca-U.x;R=la+qa*Ca-U.y;qa=Ea*Ea+R*R;if(2>=qa)return new L(Ea,R);qa=Math.sqrt(qa/2)}else U=!1,R>Number.EPSILON?Ea>Number.EPSILON&&(U=!0):R<-Number.EPSILON?Ea<-Number.EPSILON&&(U=!0):Math.sign(qa)===
|
|
|
-Math.sign(Ca)&&(U=!0),U?(Ea=-qa,qa=Math.sqrt(Ka)):(Ea=R,R=qa,qa=Math.sqrt(Ka/2));return new L(Ea/qa,R/qa)}function n(U,la){for(var wa=U.length;0<=--wa;){var R=wa,qa=wa-1;0>qa&&(qa=U.length-1);for(var Ea=0,Ca=B+2*M;Ea<Ca;Ea++){var Ka=fb*Ea,Ra=fb*(Ea+1),kb=la+qa+Ka,nc=la+qa+Ra;Ra=la+R+Ra;q(la+R+Ka);q(kb);q(Ra);q(kb);q(nc);q(Ra);Ka=e.length/3;Ka=K.generateSideWallUV(d,e,Ka-6,Ka-3,Ka-2,Ka-1);v(Ka[0]);v(Ka[1]);v(Ka[3]);v(Ka[1]);v(Ka[2]);v(Ka[3])}}}function p(U,la,wa){u.push(U);u.push(la);u.push(wa)}function t(U,
|
|
|
+Math.sign(Ca)&&(U=!0),U?(Ea=-qa,qa=Math.sqrt(Ka)):(Ea=R,R=qa,qa=Math.sqrt(Ka/2));return new L(Ea/qa,R/qa)}function n(U,la){for(var wa=U.length;0<=--wa;){var R=wa,qa=wa-1;0>qa&&(qa=U.length-1);for(var Ea=0,Ca=B+2*M;Ea<Ca;Ea++){var Ka=fb*Ea,Ra=fb*(Ea+1),kb=la+qa+Ka,mc=la+qa+Ra;Ra=la+R+Ra;q(la+R+Ka);q(kb);q(Ra);q(kb);q(mc);q(Ra);Ka=e.length/3;Ka=K.generateSideWallUV(d,e,Ka-6,Ka-3,Ka-2,Ka-1);v(Ka[0]);v(Ka[1]);v(Ka[3]);v(Ka[1]);v(Ka[2]);v(Ka[3])}}}function p(U,la,wa){u.push(U);u.push(la);u.push(wa)}function t(U,
|
|
|
la,wa){q(U);q(la);q(wa);U=e.length/3;U=K.generateTopUV(d,e,U-3,U-2,U-1);v(U[0]);v(U[1]);v(U[2])}function q(U){e.push(u[3*U]);e.push(u[3*U+1]);e.push(u[3*U+2])}function v(U){f.push(U.x);f.push(U.y)}var u=[],A=void 0!==a.curveSegments?a.curveSegments:12,B=void 0!==a.steps?a.steps:1,D=void 0!==a.depth?a.depth:100,G=void 0!==a.bevelEnabled?a.bevelEnabled:!0,I=void 0!==a.bevelThickness?a.bevelThickness:6,E=void 0!==a.bevelSize?a.bevelSize:I-2,H=void 0!==a.bevelOffset?a.bevelOffset:0,M=void 0!==a.bevelSegments?
|
|
|
-a.bevelSegments:3,F=a.extrudePath,K=void 0!==a.UVGenerator?a.UVGenerator:Jl;void 0!==a.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),D=a.amount);var P=!1;if(F){var V=F.getSpacedPoints(B);P=!0;G=!1;var ia=F.computeFrenetFrames(B,!1);var W=new w;var aa=new w;var Z=new w}G||(H=E=I=M=0);k=k.extractPoints(A);F=k.shape;var ja=k.holes;if(!oc.isClockWise(F))for(F=F.reverse(),k=0,A=ja.length;k<A;k++){var Aa=ja[k];oc.isClockWise(Aa)&&(ja[k]=Aa.reverse())}var Xa=oc.triangulateShape(F,
|
|
|
+a.bevelSegments:3,F=a.extrudePath,K=void 0!==a.UVGenerator?a.UVGenerator:Jl;void 0!==a.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),D=a.amount);var P=!1;if(F){var V=F.getSpacedPoints(B);P=!0;G=!1;var ia=F.computeFrenetFrames(B,!1);var W=new w;var aa=new w;var Z=new w}G||(H=E=I=M=0);k=k.extractPoints(A);F=k.shape;var ja=k.holes;if(!nc.isClockWise(F))for(F=F.reverse(),k=0,A=ja.length;k<A;k++){var Aa=ja[k];nc.isClockWise(Aa)&&(ja[k]=Aa.reverse())}var Xa=nc.triangulateShape(F,
|
|
|
ja),bb=F;k=0;for(A=ja.length;k<A;k++)F=F.concat(ja[k]);var fb=F.length,z=Xa.length;k=[];A=0;Aa=bb.length;for(var C=Aa-1,y=A+1;A<Aa;A++,C++,y++)C===Aa&&(C=0),y===Aa&&(y=0),k[A]=m(bb[A],bb[C],bb[y]);A=[];Aa=k.concat();y=0;for(var Q=ja.length;y<Q;y++){var T=ja[y];C=[];for(var ba=0,X=T.length,ta=X-1,va=ba+1;ba<X;ba++,ta++,va++)ta===X&&(ta=0),va===X&&(va=0),C[ba]=m(T[ba],T[ta],T[va]);A.push(C);Aa=Aa.concat(C)}for(y=0;y<M;y++){C=y/M;Q=I*Math.cos(C*Math.PI/2);T=E*Math.sin(C*Math.PI/2)+H;C=0;for(ba=bb.length;C<
|
|
|
ba;C++)X=l(bb[C],k[C],T),p(X.x,X.y,-Q);ba=0;for(X=ja.length;ba<X;ba++){ta=ja[ba];C=A[ba];va=0;for(var ya=ta.length;va<ya;va++){var Pa=l(ta[va],C[va],T);p(Pa.x,Pa.y,-Q)}}}C=E+H;for(y=0;y<fb;y++)Q=G?l(F[y],Aa[y],C):F[y],P?(aa.copy(ia.normals[0]).multiplyScalar(Q.x),W.copy(ia.binormals[0]).multiplyScalar(Q.y),Z.copy(V[0]).add(aa).add(W),p(Z.x,Z.y,Z.z)):p(Q.x,Q.y,0);for(y=1;y<=B;y++)for(Q=0;Q<fb;Q++)T=G?l(F[Q],Aa[Q],C):F[Q],P?(aa.copy(ia.normals[y]).multiplyScalar(T.x),W.copy(ia.binormals[y]).multiplyScalar(T.y),
|
|
|
Z.copy(V[y]).add(aa).add(W),p(Z.x,Z.y,Z.z)):p(T.x,T.y,D/B*y);for(ia=M-1;0<=ia;ia--){aa=ia/M;W=I*Math.cos(aa*Math.PI/2);aa=E*Math.sin(aa*Math.PI/2)+H;Z=0;for(F=bb.length;Z<F;Z++)Aa=l(bb[Z],k[Z],aa),p(Aa.x,Aa.y,D+W);Z=0;for(F=ja.length;Z<F;Z++)for(Aa=ja[Z],C=A[Z],y=0,Q=Aa.length;y<Q;y++)T=l(Aa[y],C[y],aa),P?p(T.x,T.y+V[B-1].y,V[B-1].x+W):p(T.x,T.y,D+W)}(function(){var U=e.length/3;if(G){for(var la=0*fb,wa=0;wa<z;wa++){var R=Xa[wa];t(R[2]+la,R[1]+la,R[0]+la)}la=fb*(B+2*M);for(wa=0;wa<z;wa++)R=Xa[wa],
|
|
@@ -286,16 +286,16 @@ a=a||1;e=void 0!==e?e:0;f=void 0!==f?f:2*Math.PI;b=void 0!==b?Math.max(3,b):8;d=
|
|
|
new ea(k,3));this.setAttribute("uv",new ea(l,2))}function lf(c,a,b,d){sa.call(this);this.type="LatheGeometry";this.parameters={points:c,segments:a,phiStart:b,phiLength:d};this.fromBufferGeometry(new be(c,a,b,d));this.mergeVertices()}function be(c,a,b,d){ka.call(this);this.type="LatheBufferGeometry";this.parameters={points:c,segments:a,phiStart:b,phiLength:d};a=Math.floor(a)||12;b=b||0;d=d||2*Math.PI;d=xa.clamp(d,0,2*Math.PI);for(var e=[],f=[],g=[],h=1/a,k=new w,l=new L,m=0;m<=a;m++){var n=b+m*h*d,
|
|
|
p=Math.sin(n);n=Math.cos(n);for(var t=0;t<=c.length-1;t++)k.x=c[t].x*p,k.y=c[t].y,k.z=c[t].x*n,f.push(k.x,k.y,k.z),l.x=m/a,l.y=t/(c.length-1),g.push(l.x,l.y)}for(b=0;b<a;b++)for(h=0;h<c.length-1;h++)k=h+b*c.length,l=k+c.length,m=k+c.length+1,p=k+1,e.push(k,l,p),e.push(l,m,p);this.setIndex(e);this.setAttribute("position",new ea(f,3));this.setAttribute("uv",new ea(g,2));this.computeVertexNormals();if(d===2*Math.PI)for(d=this.attributes.normal.array,e=new w,f=new w,g=new w,a=a*c.length*3,h=b=0;b<c.length;b++,
|
|
|
h+=3)e.x=d[h+0],e.y=d[h+1],e.z=d[h+2],f.x=d[a+h+0],f.y=d[a+h+1],f.z=d[a+h+2],g.addVectors(e,f).normalize(),d[h+0]=d[a+h+0]=g.x,d[h+1]=d[a+h+1]=g.y,d[h+2]=d[a+h+2]=g.z}function kd(c,a){sa.call(this);this.type="ShapeGeometry";"object"===typeof a&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),a=a.curveSegments);this.parameters={shapes:c,curveSegments:a};this.fromBufferGeometry(new ld(c,a));this.mergeVertices()}function ld(c,a){function b(m){var n=e.length/3,p=m.extractPoints(a);
|
|
|
-m=p.shape;var t=p.holes;!1===oc.isClockWise(m)&&(m=m.reverse());p=0;for(var q=t.length;p<q;p++){var v=t[p];!0===oc.isClockWise(v)&&(t[p]=v.reverse())}p=oc.triangulateShape(m,t);q=0;for(v=t.length;q<v;q++)m=m.concat(t[q]);t=0;for(q=m.length;t<q;t++)v=m[t],e.push(v.x,v.y,0),f.push(0,0,1),g.push(v.x,v.y);m=0;for(t=p.length;m<t;m++)q=p[m],d.push(q[0]+n,q[1]+n,q[2]+n),k+=3}ka.call(this);this.type="ShapeBufferGeometry";this.parameters={shapes:c,curveSegments:a};a=a||12;var d=[],e=[],f=[],g=[],h=0,k=0;if(!1===
|
|
|
+m=p.shape;var t=p.holes;!1===nc.isClockWise(m)&&(m=m.reverse());p=0;for(var q=t.length;p<q;p++){var v=t[p];!0===nc.isClockWise(v)&&(t[p]=v.reverse())}p=nc.triangulateShape(m,t);q=0;for(v=t.length;q<v;q++)m=m.concat(t[q]);t=0;for(q=m.length;t<q;t++)v=m[t],e.push(v.x,v.y,0),f.push(0,0,1),g.push(v.x,v.y);m=0;for(t=p.length;m<t;m++)q=p[m],d.push(q[0]+n,q[1]+n,q[2]+n),k+=3}ka.call(this);this.type="ShapeBufferGeometry";this.parameters={shapes:c,curveSegments:a};a=a||12;var d=[],e=[],f=[],g=[],h=0,k=0;if(!1===
|
|
|
Array.isArray(c))b(c);else for(var l=0;l<c.length;l++)b(c[l]),this.addGroup(h,k,l),h+=k,k=0;this.setIndex(d);this.setAttribute("position",new ea(e,3));this.setAttribute("normal",new ea(f,3));this.setAttribute("uv",new ea(g,2))}function ij(c,a){a.shapes=[];if(Array.isArray(c))for(var b=0,d=c.length;b<d;b++)a.shapes.push(c[b].uuid);else a.shapes.push(c.uuid);return a}function ce(c,a){ka.call(this);this.type="EdgesGeometry";this.parameters={thresholdAngle:a};var b=[];a=Math.cos(xa.DEG2RAD*(void 0!==
|
|
|
a?a:1));var d=[0,0],e={},f=["a","b","c"];if(c.isBufferGeometry){var g=new sa;g.fromBufferGeometry(c)}else g=c.clone();g.mergeVertices();g.computeFaceNormals();c=g.vertices;g=g.faces;for(var h=0,k=g.length;h<k;h++)for(var l=g[h],m=0;3>m;m++){var n=l[f[m]];var p=l[f[(m+1)%3]];d[0]=Math.min(n,p);d[1]=Math.max(n,p);n=d[0]+","+d[1];void 0===e[n]?e[n]={index1:d[0],index2:d[1],face1:h,face2:void 0}:e[n].face2=h}for(n in e)if(d=e[n],void 0===d.face2||g[d.face1].normal.dot(g[d.face2].normal)<=a)f=c[d.index1],
|
|
|
-b.push(f.x,f.y,f.z),f=c[d.index2],b.push(f.x,f.y,f.z);this.setAttribute("position",new ea(b,3))}function md(c,a,b,d,e,f,g,h){sa.call(this);this.type="CylinderGeometry";this.parameters={radiusTop:c,radiusBottom:a,height:b,radialSegments:d,heightSegments:e,openEnded:f,thetaStart:g,thetaLength:h};this.fromBufferGeometry(new pc(c,a,b,d,e,f,g,h));this.mergeVertices()}function pc(c,a,b,d,e,f,g,h){function k(B){for(var D=q,G=new L,I=new w,E=0,H=!0===B?c:a,M=!0===B?1:-1,F=1;F<=d;F++)n.push(0,u*M,0),p.push(0,
|
|
|
+b.push(f.x,f.y,f.z),f=c[d.index2],b.push(f.x,f.y,f.z);this.setAttribute("position",new ea(b,3))}function md(c,a,b,d,e,f,g,h){sa.call(this);this.type="CylinderGeometry";this.parameters={radiusTop:c,radiusBottom:a,height:b,radialSegments:d,heightSegments:e,openEnded:f,thetaStart:g,thetaLength:h};this.fromBufferGeometry(new oc(c,a,b,d,e,f,g,h));this.mergeVertices()}function oc(c,a,b,d,e,f,g,h){function k(B){for(var D=q,G=new L,I=new w,E=0,H=!0===B?c:a,M=!0===B?1:-1,F=1;F<=d;F++)n.push(0,u*M,0),p.push(0,
|
|
|
M,0),t.push(.5,.5),q++;F=q;for(var K=0;K<=d;K++){var P=K/d*h+g,V=Math.cos(P);P=Math.sin(P);I.x=H*P;I.y=u*M;I.z=H*V;n.push(I.x,I.y,I.z);p.push(0,M,0);G.x=.5*V+.5;G.y=.5*P*M+.5;t.push(G.x,G.y);q++}for(G=0;G<d;G++)I=D+G,H=F+G,!0===B?m.push(H,H+1,I):m.push(H+1,H,I),E+=3;l.addGroup(A,E,!0===B?1:2);A+=E}ka.call(this);this.type="CylinderBufferGeometry";this.parameters={radiusTop:c,radiusBottom:a,height:b,radialSegments:d,heightSegments:e,openEnded:f,thetaStart:g,thetaLength:h};var l=this;c=void 0!==c?c:
|
|
|
1;a=void 0!==a?a:1;b=b||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 m=[],n=[],p=[],t=[],q=0,v=[],u=b/2,A=0;(function(){for(var B=new w,D=new w,G=0,I=(a-c)/b,E=0;E<=e;E++){for(var H=[],M=E/e,F=M*(a-c)+c,K=0;K<=d;K++){var P=K/d,V=P*h+g,ia=Math.sin(V);V=Math.cos(V);D.x=F*ia;D.y=-M*b+u;D.z=F*V;n.push(D.x,D.y,D.z);B.set(ia,I,V).normalize();p.push(B.x,B.y,B.z);t.push(P,1-M);H.push(q++)}v.push(H)}for(B=0;B<d;B++)for(D=0;D<e;D++)I=v[D+1][B],E=v[D+
|
|
|
-1][B+1],H=v[D][B+1],m.push(v[D][B],I,H),m.push(I,E,H),G+=6;l.addGroup(A,G,0);A+=G})();!1===f&&(0<c&&k(!0),0<a&&k(!1));this.setIndex(m);this.setAttribute("position",new ea(n,3));this.setAttribute("normal",new ea(p,3));this.setAttribute("uv",new ea(t,2))}function mf(c,a,b,d,e,f,g){md.call(this,0,c,a,b,d,e,f,g);this.type="ConeGeometry";this.parameters={radius:c,height:a,radialSegments:b,heightSegments:d,openEnded:e,thetaStart:f,thetaLength:g}}function nf(c,a,b,d,e,f,g){pc.call(this,0,c,a,b,d,e,f,g);
|
|
|
+1][B+1],H=v[D][B+1],m.push(v[D][B],I,H),m.push(I,E,H),G+=6;l.addGroup(A,G,0);A+=G})();!1===f&&(0<c&&k(!0),0<a&&k(!1));this.setIndex(m);this.setAttribute("position",new ea(n,3));this.setAttribute("normal",new ea(p,3));this.setAttribute("uv",new ea(t,2))}function mf(c,a,b,d,e,f,g){md.call(this,0,c,a,b,d,e,f,g);this.type="ConeGeometry";this.parameters={radius:c,height:a,radialSegments:b,heightSegments:d,openEnded:e,thetaStart:f,thetaLength:g}}function nf(c,a,b,d,e,f,g){oc.call(this,0,c,a,b,d,e,f,g);
|
|
|
this.type="ConeBufferGeometry";this.parameters={radius:c,height:a,radialSegments:b,heightSegments:d,openEnded:e,thetaStart:f,thetaLength:g}}function of(c,a,b,d){sa.call(this);this.type="CircleGeometry";this.parameters={radius:c,segments:a,thetaStart:b,thetaLength:d};this.fromBufferGeometry(new de(c,a,b,d));this.mergeVertices()}function de(c,a,b,d){ka.call(this);this.type="CircleBufferGeometry";this.parameters={radius:c,segments:a,thetaStart:b,thetaLength:d};c=c||1;a=void 0!==a?Math.max(3,a):8;b=void 0!==
|
|
|
b?b:0;d=void 0!==d?d:2*Math.PI;var e=[],f=[],g=[],h=[],k=new w,l=new L;f.push(0,0,0);g.push(0,0,1);h.push(.5,.5);for(var m=0,n=3;m<=a;m++,n+=3){var p=b+m/a*d;k.x=c*Math.cos(p);k.y=c*Math.sin(p);f.push(k.x,k.y,k.z);g.push(0,0,1);l.x=(f[n]/c+1)/2;l.y=(f[n+1]/c+1)/2;h.push(l.x,l.y)}for(c=1;c<=a;c++)e.push(c,c+1,0);this.setIndex(e);this.setAttribute("position",new ea(f,3));this.setAttribute("normal",new ea(g,3));this.setAttribute("uv",new ea(h,2))}function nd(c){ra.call(this);this.type="ShadowMaterial";
|
|
|
-this.color=new S(0);this.transparent=!0;this.setValues(c)}function qc(c){sb.call(this,c);this.type="RawShaderMaterial"}function dc(c){ra.call(this);this.defines={STANDARD:""};this.type="MeshStandardMaterial";this.color=new S(16777215);this.roughness=1;this.metalness=0;this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new S(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;
|
|
|
+this.color=new S(0);this.transparent=!0;this.setValues(c)}function pc(c){sb.call(this,c);this.type="RawShaderMaterial"}function dc(c){ra.call(this);this.defines={STANDARD:""};this.type="MeshStandardMaterial";this.color=new S(16777215);this.roughness=1;this.metalness=0;this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=new S(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;
|
|
|
this.normalScale=new L(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(c)}function Oc(c){dc.call(this);this.defines={STANDARD:"",PHYSICAL:""};this.type="MeshPhysicalMaterial";
|
|
|
this.clearcoat=0;this.clearcoatMap=null;this.clearcoatRoughness=0;this.clearcoatRoughnessMap=null;this.clearcoatNormalScale=new L(1,1);this.clearcoatNormalMap=null;this.reflectivity=.5;this.sheen=null;this.transmission=0;this.transmissionMap=null;this.setValues(c)}function Pc(c){ra.call(this);this.type="MeshPhongMaterial";this.color=new S(16777215);this.specular=new S(1118481);this.shininess=30;this.lightMap=this.map=null;this.lightMapIntensity=1;this.aoMap=null;this.aoMapIntensity=1;this.emissive=
|
|
|
new S(0);this.emissiveIntensity=1;this.bumpMap=this.emissiveMap=null;this.bumpScale=1;this.normalMap=null;this.normalMapType=0;this.normalScale=new L(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(c)}
|
|
@@ -312,11 +312,11 @@ function Ma(c){this.manager=void 0!==c?c:jj;this.crossOrigin="anonymous";this.re
|
|
|
b||1;this.yRadius=d||1;this.aStartAngle=e||0;this.aEndAngle=f||2*Math.PI;this.aClockwise=g||!1;this.aRotation=h||0}function he(c,a,b,d,e,f){Jb.call(this,c,a,b,b,d,e,f);this.type="ArcCurve"}function Dh(){var c=0,a=0,b=0,d=0;return{initCatmullRom:function(e,f,g,h,k){e=k*(g-e);h=k*(h-f);c=f;a=e;b=-3*f+3*g-2*e-h;d=2*f-2*g+e+h},initNonuniformCatmullRom:function(e,f,g,h,k,l,m){e=((f-e)/k-(g-e)/(k+l)+(g-f)/l)*l;h=((g-f)/l-(h-f)/(l+m)+(h-g)/m)*l;c=f;a=e;b=-3*f+3*g-2*e-h;d=2*f-2*g+e+h},calc:function(e){var f=
|
|
|
e*e;return c+a*e+b*f+d*f*e}}}function ob(c,a,b,d){oa.call(this);this.type="CatmullRomCurve3";this.points=c||[];this.closed=a||!1;this.curveType=b||"centripetal";this.tension=void 0!==d?d:.5}function kj(c,a,b,d,e){a=.5*(d-a);e=.5*(e-b);var f=c*c;return(2*b-2*d+a+e)*c*f+(-3*b+3*d-2*a-e)*f+a*c+b}function rf(c,a,b,d){var e=1-c;return e*e*a+2*(1-c)*c*b+c*c*d}function sf(c,a,b,d,e){var f=1-c,g=1-c;return f*f*f*a+3*g*g*c*b+3*(1-c)*c*c*d+c*c*c*e}function Tb(c,a,b,d){oa.call(this);this.type="CubicBezierCurve";
|
|
|
this.v0=c||new L;this.v1=a||new L;this.v2=b||new L;this.v3=d||new L}function ec(c,a,b,d){oa.call(this);this.type="CubicBezierCurve3";this.v0=c||new w;this.v1=a||new w;this.v2=b||new w;this.v3=d||new w}function Ab(c,a){oa.call(this);this.type="LineCurve";this.v1=c||new L;this.v2=a||new L}function Ub(c,a){oa.call(this);this.type="LineCurve3";this.v1=c||new w;this.v2=a||new w}function Vb(c,a,b){oa.call(this);this.type="QuadraticBezierCurve";this.v0=c||new L;this.v1=a||new L;this.v2=b||new L}function fc(c,
|
|
|
-a,b){oa.call(this);this.type="QuadraticBezierCurve3";this.v0=c||new w;this.v1=a||new w;this.v2=b||new w}function Wb(c){oa.call(this);this.type="SplineCurve";this.points=c||[]}function rc(){oa.call(this);this.type="CurvePath";this.curves=[];this.autoClose=!1}function Xb(c){rc.call(this);this.type="Path";this.currentPoint=new L;c&&this.setFromPoints(c)}function Qc(c){Xb.call(this,c);this.uuid=xa.generateUUID();this.type="Shape";this.holes=[]}function Sa(c,a){ha.call(this);this.type="Light";this.color=
|
|
|
-new S(c);this.intensity=void 0!==a?a:1;this.receiveShadow=void 0}function ng(c,a,b){Sa.call(this,c,b);this.type="HemisphereLight";this.castShadow=void 0;this.position.copy(ha.DefaultUp);this.updateMatrix();this.groundColor=new S(a)}function gc(c){this.camera=c;this.normalBias=this.bias=0;this.radius=1;this.mapSize=new L(512,512);this.mapPass=this.map=null;this.matrix=new da;this.autoUpdate=!0;this.needsUpdate=!1;this._frustum=new xb;this._frameExtents=new L(1,1);this._viewportCount=1;this._viewports=
|
|
|
-[new ca(0,0,1,1)]}function Eh(){gc.call(this,new eb(50,1,.5,500));this.focus=1}function og(c,a,b,d,e,f){Sa.call(this,c,a);this.type="SpotLight";this.position.copy(ha.DefaultUp);this.updateMatrix();this.target=new ha;Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(g){this.intensity=g/Math.PI}});this.distance=void 0!==b?b: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 Eh}function Fh(){gc.call(this,
|
|
|
+a,b){oa.call(this);this.type="QuadraticBezierCurve3";this.v0=c||new w;this.v1=a||new w;this.v2=b||new w}function Wb(c){oa.call(this);this.type="SplineCurve";this.points=c||[]}function qc(){oa.call(this);this.type="CurvePath";this.curves=[];this.autoClose=!1}function Xb(c){qc.call(this);this.type="Path";this.currentPoint=new L;c&&this.setFromPoints(c)}function Qc(c){Xb.call(this,c);this.uuid=xa.generateUUID();this.type="Shape";this.holes=[]}function Sa(c,a){ha.call(this);this.type="Light";this.color=
|
|
|
+new S(c);this.intensity=void 0!==a?a:1;this.receiveShadow=void 0}function ng(c,a,b){Sa.call(this,c,b);this.type="HemisphereLight";this.castShadow=void 0;this.position.copy(ha.DefaultUp);this.updateMatrix();this.groundColor=new S(a)}function rc(c){this.camera=c;this.normalBias=this.bias=0;this.radius=1;this.mapSize=new L(512,512);this.mapPass=this.map=null;this.matrix=new da;this.autoUpdate=!0;this.needsUpdate=!1;this._frustum=new xb;this._frameExtents=new L(1,1);this._viewportCount=1;this._viewports=
|
|
|
+[new ca(0,0,1,1)]}function Eh(){rc.call(this,new eb(50,1,.5,500));this.focus=1}function og(c,a,b,d,e,f){Sa.call(this,c,a);this.type="SpotLight";this.position.copy(ha.DefaultUp);this.updateMatrix();this.target=new ha;Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(g){this.intensity=g/Math.PI}});this.distance=void 0!==b?b: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 Eh}function Fh(){rc.call(this,
|
|
|
new eb(90,1,.5,500));this._frameExtents=new L(4,2);this._viewportCount=6;this._viewports=[new ca(2,1,1,1),new ca(0,1,1,1),new ca(3,1,1,1),new ca(1,1,1,1),new ca(3,0,1,1),new ca(1,0,1,1)];this._cubeDirections=[new w(1,0,0),new w(-1,0,0),new w(0,0,1),new w(0,0,-1),new w(0,1,0),new w(0,-1,0)];this._cubeUps=[new w(0,1,0),new w(0,1,0),new w(0,1,0),new w(0,1,0),new w(0,0,1),new w(0,0,-1)]}function pg(c,a,b,d){Sa.call(this,c,a);this.type="PointLight";Object.defineProperty(this,"power",{get:function(){return 4*
|
|
|
-this.intensity*Math.PI},set:function(e){this.intensity=e/(4*Math.PI)}});this.distance=void 0!==b?b:0;this.decay=void 0!==d?d:1;this.shadow=new Fh}function ie(c,a,b,d,e,f){bc.call(this);this.type="OrthographicCamera";this.zoom=1;this.view=null;this.left=void 0!==c?c:-1;this.right=void 0!==a?a:1;this.top=void 0!==b?b: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 Gh(){gc.call(this,new ie(-5,5,5,-5,.5,500))}function qg(c,a){Sa.call(this,
|
|
|
+this.intensity*Math.PI},set:function(e){this.intensity=e/(4*Math.PI)}});this.distance=void 0!==b?b:0;this.decay=void 0!==d?d:1;this.shadow=new Fh}function ie(c,a,b,d,e,f){bc.call(this);this.type="OrthographicCamera";this.zoom=1;this.view=null;this.left=void 0!==c?c:-1;this.right=void 0!==a?a:1;this.top=void 0!==b?b: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 Gh(){rc.call(this,new ie(-5,5,5,-5,.5,500))}function qg(c,a){Sa.call(this,
|
|
|
c,a);this.type="DirectionalLight";this.position.copy(ha.DefaultUp);this.updateMatrix();this.target=new ha;this.shadow=new Gh}function rg(c,a){Sa.call(this,c,a);this.type="AmbientLight";this.castShadow=void 0}function sg(c,a,b,d){Sa.call(this,c,a);this.type="RectAreaLight";this.width=void 0!==b?b:10;this.height=void 0!==d?d:10}function Pb(c,a){Sa.call(this,void 0,a);this.type="LightProbe";this.sh=void 0!==c?c:new pb}function tg(c){Ma.call(this,c);this.textures={}}function tf(){ka.call(this);this.type=
|
|
|
"InstancedBufferGeometry";this.instanceCount=Infinity}function ug(c,a,b,d){"number"===typeof b&&(d=b,b=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument."));pa.call(this,c,a,b);this.meshPerAttribute=d||1}function vg(c){Ma.call(this,c)}function Bb(c){Ma.call(this,c)}function Hh(c){"undefined"===typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported.");"undefined"===typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported.");
|
|
|
Ma.call(this,c);this.options={premultiplyAlpha:"none"}}function Ih(){this.type="ShapePath";this.color=new S;this.subPaths=[];this.currentPath=null}function Jh(c){this.type="Font";this.data=c}function Kh(c){Ma.call(this,c)}function wg(c){Ma.call(this,c)}function Lh(c,a,b){Pb.call(this,void 0,b);c=(new S).set(c);b=(new S).set(a);a=new w(c.r,c.g,c.b);c=new w(b.r,b.g,b.b);b=Math.sqrt(Math.PI);var d=b*Math.sqrt(.75);this.sh.coefficients[0].copy(a).add(c).multiplyScalar(b);this.sh.coefficients[1].copy(a).sub(c).multiplyScalar(d)}
|
|
@@ -339,10 +339,10 @@ q,v){b(t,v);b(q,v)}function b(t,q){f.push(0,0,0);g.push(q.r,q.g,q.b);void 0===h[
|
|
|
c=a[c];if(void 0!==c)for(b=b.getAttribute("position"),a=0,d=c.length;a<d;a++)b.setXYZ(c[a],yg.x,yg.y,yg.z)}function Rc(c,a){void 0===a&&(a=16776960);var b=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]),d=new Float32Array(24),e=new ka;e.setIndex(new pa(b,1));e.setAttribute("position",new pa(d,3));Za.call(this,e,new Ya({color:a,toneMapped:!1}));this.object=c;this.type="BoxHelper";this.matrixAutoUpdate=!1;this.update()}function xf(c,a){void 0===a&&(a=16776960);var b=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]),d=new ka;d.setIndex(new pa(b,1));d.setAttribute("position",new ea([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));Za.call(this,d,new Ya({color:a,toneMapped:!1}));this.box=c;this.type="Box3Helper";this.geometry.computeBoundingSphere()}function yf(c,a,b){b=void 0!==b?b:16776960;var d=new ka;d.setAttribute("position",new ea([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));d.computeBoundingSphere();yb.call(this,
|
|
|
d,new Ya({color:b,toneMapped:!1}));this.type="PlaneHelper";this.plane=c;this.size=void 0===a?1:a;c=new ka;c.setAttribute("position",new ea([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3));c.computeBoundingSphere();this.add(new Qa(c,new Lb({color:b,opacity:.2,transparent:!0,depthWrite:!1,toneMapped:!1})))}function Sc(c,a,b,d,e,f){ha.call(this);this.type="ArrowHelper";void 0===c&&(c=new w(0,0,1));void 0===a&&(a=new w(0,0,0));void 0===b&&(b=1);void 0===d&&(d=16776960);void 0===e&&(e=.2*b);void 0===f&&
|
|
|
-(f=.2*e);void 0===zg&&(zg=new ka,zg.setAttribute("position",new ea([0,0,0,0,1,0],3)),Uh=new pc(0,.5,1,5,1),Uh.translate(0,-.5,0));this.position.copy(a);this.line=new yb(zg,new Ya({color:d,toneMapped:!1}));this.line.matrixAutoUpdate=!1;this.add(this.line);this.cone=new Qa(Uh,new Lb({color:d,toneMapped:!1}));this.cone.matrixAutoUpdate=!1;this.add(this.cone);this.setDirection(c);this.setLength(b,e,f)}function zf(c){void 0===c&&(c=1);var a=[0,0,0,c,0,0,0,0,0,0,c,0,0,0,0,0,0,c];c=new ka;c.setAttribute("position",
|
|
|
-new ea(a,3));c.setAttribute("color",new ea([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));a=new Ya({vertexColors:!0,toneMapped:!1});Za.call(this,c,a);this.type="AxesHelper"}function qj(c){c=new Eb(3*hc,3*hc,c);c.texture.mapping=306;c.texture.name="PMREM.cubeUv";c.scissorTest=!0;return c}function Ag(c,a,b,d,e){c.viewport.set(a,b,d,e);c.scissor.set(a,b,d,e)}function rj(){var c=new L(1,1);return new qc({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:c},inputEncoding:{value:ic[3E3]},
|
|
|
-outputEncoding:{value:ic[3E3]}},vertexShader:Vh(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform vec2 texelSize;\n\n\t\t\t"+Wh()+"\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tvec2 f = fract( uv / texelSize - 0.5 );\n\t\t\t\tuv -= f * texelSize;\n\t\t\t\tvec3 tl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x += texelSize.x;\n\t\t\t\tvec3 tr = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.y += texelSize.y;\n\t\t\t\tvec3 br = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x -= texelSize.x;\n\t\t\t\tvec3 bl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\n\t\t\t\tvec3 tm = mix( tl, tr, f.x );\n\t\t\t\tvec3 bm = mix( bl, br, f.x );\n\t\t\t\tgl_FragColor.rgb = mix( tm, bm, f.y );\n\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",
|
|
|
-blending:0,depthTest:!1,depthWrite:!1})}function sj(){return new qc({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},inputEncoding:{value:ic[3E3]},outputEncoding:{value:ic[3E3]}},vertexShader:Vh(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\t"+Wh()+"\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb = envMapTexelToLinear( textureCube( envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ) ) ).rgb;\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",
|
|
|
+(f=.2*e);void 0===zg&&(zg=new ka,zg.setAttribute("position",new ea([0,0,0,0,1,0],3)),Uh=new oc(0,.5,1,5,1),Uh.translate(0,-.5,0));this.position.copy(a);this.line=new yb(zg,new Ya({color:d,toneMapped:!1}));this.line.matrixAutoUpdate=!1;this.add(this.line);this.cone=new Qa(Uh,new Lb({color:d,toneMapped:!1}));this.cone.matrixAutoUpdate=!1;this.add(this.cone);this.setDirection(c);this.setLength(b,e,f)}function zf(c){void 0===c&&(c=1);var a=[0,0,0,c,0,0,0,0,0,0,c,0,0,0,0,0,0,c];c=new ka;c.setAttribute("position",
|
|
|
+new ea(a,3));c.setAttribute("color",new ea([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));a=new Ya({vertexColors:!0,toneMapped:!1});Za.call(this,c,a);this.type="AxesHelper"}function qj(c){c=new Eb(3*gc,3*gc,c);c.texture.mapping=306;c.texture.name="PMREM.cubeUv";c.scissorTest=!0;return c}function Ag(c,a,b,d,e){c.viewport.set(a,b,d,e);c.scissor.set(a,b,d,e)}function rj(){var c=new L(1,1);return new pc({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null},texelSize:{value:c},inputEncoding:{value:hc[3E3]},
|
|
|
+outputEncoding:{value:hc[3E3]}},vertexShader:Vh(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform vec2 texelSize;\n\n\t\t\t"+Wh()+"\n\n\t\t\t#include <common>\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tvec2 f = fract( uv / texelSize - 0.5 );\n\t\t\t\tuv -= f * texelSize;\n\t\t\t\tvec3 tl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x += texelSize.x;\n\t\t\t\tvec3 tr = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.y += texelSize.y;\n\t\t\t\tvec3 br = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\t\t\t\tuv.x -= texelSize.x;\n\t\t\t\tvec3 bl = envMapTexelToLinear( texture2D ( envMap, uv ) ).rgb;\n\n\t\t\t\tvec3 tm = mix( tl, tr, f.x );\n\t\t\t\tvec3 bm = mix( bl, br, f.x );\n\t\t\t\tgl_FragColor.rgb = mix( tm, bm, f.y );\n\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",
|
|
|
+blending:0,depthTest:!1,depthWrite:!1})}function sj(){return new pc({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},inputEncoding:{value:hc[3E3]},outputEncoding:{value:hc[3E3]}},vertexShader:Vh(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\t"+Wh()+"\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb = envMapTexelToLinear( textureCube( envMap, vec3( - vOutputDirection.x, vOutputDirection.yz ) ) ).rgb;\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",
|
|
|
blending:0,depthTest:!1,depthWrite:!1})}function Vh(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute vec3 position;\n\t\tattribute vec2 uv;\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}
|
|
|
function Wh(){return"\n\n\t\tuniform int inputEncoding;\n\t\tuniform int outputEncoding;\n\n\t\t#include <encodings_pars_fragment>\n\n\t\tvec4 inputTexelToLinear( vec4 value ) {\n\n\t\t\tif ( inputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( inputEncoding == 1 ) {\n\n\t\t\t\treturn sRGBToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 2 ) {\n\n\t\t\t\treturn RGBEToLinear( value );\n\n\t\t\t} else if ( inputEncoding == 3 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 7.0 );\n\n\t\t\t} else if ( inputEncoding == 4 ) {\n\n\t\t\t\treturn RGBMToLinear( value, 16.0 );\n\n\t\t\t} else if ( inputEncoding == 5 ) {\n\n\t\t\t\treturn RGBDToLinear( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn GammaToLinear( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 linearToOutputTexel( vec4 value ) {\n\n\t\t\tif ( outputEncoding == 0 ) {\n\n\t\t\t\treturn value;\n\n\t\t\t} else if ( outputEncoding == 1 ) {\n\n\t\t\t\treturn LinearTosRGB( value );\n\n\t\t\t} else if ( outputEncoding == 2 ) {\n\n\t\t\t\treturn LinearToRGBE( value );\n\n\t\t\t} else if ( outputEncoding == 3 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 7.0 );\n\n\t\t\t} else if ( outputEncoding == 4 ) {\n\n\t\t\t\treturn LinearToRGBM( value, 16.0 );\n\n\t\t\t} else if ( outputEncoding == 5 ) {\n\n\t\t\t\treturn LinearToRGBD( value, 256.0 );\n\n\t\t\t} else {\n\n\t\t\t\treturn LinearToGamma( value, 2.2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\tvec4 envMapTexelToLinear( vec4 color ) {\n\n\t\t\treturn inputTexelToLinear( color );\n\n\t\t}\n\t"}
|
|
|
function tj(c){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.");ob.call(this,c);this.type="catmullrom";this.closed=!0}function uj(c){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead.");ob.call(this,c);this.type="catmullrom"}function Xh(c){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead.");ob.call(this,c);this.type="catmullrom"}void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,
|
|
@@ -543,10 +543,10 @@ Ie.prototype.constructor=Ie;var hi=function(){this.vertices=[];this.normals=[];t
|
|
|
g&&(g.count=3*a-g.start,b.push(g));var g={start:3*a,materialIndex:d}}}void 0!==g&&(g.count=3*a-g.start,b.push(g));this.groups=b};hi.prototype.fromGeometry=function(a){var b=a.faces,d=a.vertices,e=a.faceVertexUvs,f=e[0]&&0<e[0].length,g=e[1]&&0<e[1].length,h=a.morphTargets,k=h.length;if(0<k){var l=[];for(var m=0;m<k;m++)l[m]={name:h[m].name,data:[]};this.morphTargets.position=l}m=a.morphNormals;var n=m.length;if(0<n){var p=[];for(var t=0;t<n;t++)p[t]={name:m[t].name,data:[]};this.morphTargets.normal=
|
|
|
p}t=a.skinIndices;var q=a.skinWeights,v=t.length===d.length,u=q.length===d.length;0<d.length&&0===b.length&&console.error("THREE.DirectGeometry: Faceless geometries are not supported.");for(var A=0;A<b.length;A++){var B=b[A];this.vertices.push(d[B.a],d[B.b],d[B.c]);var D=B.vertexNormals;3===D.length?this.normals.push(D[0],D[1],D[2]):(D=B.normal,this.normals.push(D,D,D));D=B.vertexColors;3===D.length?this.colors.push(D[0],D[1],D[2]):(D=B.color,this.colors.push(D,D,D));!0===f&&(D=e[0][A],void 0!==D?
|
|
|
this.uvs.push(D[0],D[1],D[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",A),this.uvs.push(new L,new L,new L)));!0===g&&(D=e[1][A],void 0!==D?this.uvs2.push(D[0],D[1],D[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",A),this.uvs2.push(new L,new L,new L)));for(D=0;D<k;D++){var G=h[D].vertices;l[D].data.push(G[B.a],G[B.b],G[B.c])}for(D=0;D<n;D++)G=m[D].vertexNormals[A],p[D].data.push(G.a,G.b,G.c);v&&this.skinIndices.push(t[B.a],t[B.b],t[B.c]);
|
|
|
-u&&this.skinWeights.push(q[B.a],q[B.b],q[B.c])}this.computeGroups(a);this.verticesNeedUpdate=a.verticesNeedUpdate;this.normalsNeedUpdate=a.normalsNeedUpdate;this.colorsNeedUpdate=a.colorsNeedUpdate;this.uvsNeedUpdate=a.uvsNeedUpdate;this.groupsNeedUpdate=a.groupsNeedUpdate;null!==a.boundingSphere&&(this.boundingSphere=a.boundingSphere.clone());null!==a.boundingBox&&(this.boundingBox=a.boundingBox.clone());return this};var kk=1,jc=new da,ii=new ha,xe=new w,Kb=new za,Gf=new za,jb=new w;ka.prototype=
|
|
|
+u&&this.skinWeights.push(q[B.a],q[B.b],q[B.c])}this.computeGroups(a);this.verticesNeedUpdate=a.verticesNeedUpdate;this.normalsNeedUpdate=a.normalsNeedUpdate;this.colorsNeedUpdate=a.colorsNeedUpdate;this.uvsNeedUpdate=a.uvsNeedUpdate;this.groupsNeedUpdate=a.groupsNeedUpdate;null!==a.boundingSphere&&(this.boundingSphere=a.boundingSphere.clone());null!==a.boundingBox&&(this.boundingBox=a.boundingBox.clone());return this};var kk=1,ic=new da,ii=new ha,xe=new w,Kb=new za,Gf=new za,jb=new w;ka.prototype=
|
|
|
Object.assign(Object.create(wb.prototype),{constructor:ka,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(a){Array.isArray(a)?this.index=new (65535<vi(a)?ad:$c)(a,1):this.index=a},getAttribute:function(a){return this.attributes[a]},setAttribute:function(a,b){this.attributes[a]=b;return this},deleteAttribute:function(a){delete this.attributes[a];return this},addGroup:function(a,b,d){this.groups.push({start:a,count:b,materialIndex:void 0!==d?d:0})},clearGroups:function(){this.groups=
|
|
|
-[]},setDrawRange:function(a,b){this.drawRange.start=a;this.drawRange.count=b},applyMatrix4:function(a){var b=this.attributes.position;void 0!==b&&(b.applyMatrix4(a),b.needsUpdate=!0);b=this.attributes.normal;if(void 0!==b){var d=(new Da).getNormalMatrix(a);b.applyNormalMatrix(d);b.needsUpdate=!0}b=this.attributes.tangent;void 0!==b&&(b.transformDirection(a),b.needsUpdate=!0);null!==this.boundingBox&&this.computeBoundingBox();null!==this.boundingSphere&&this.computeBoundingSphere();return this},rotateX:function(a){jc.makeRotationX(a);
|
|
|
-this.applyMatrix4(jc);return this},rotateY:function(a){jc.makeRotationY(a);this.applyMatrix4(jc);return this},rotateZ:function(a){jc.makeRotationZ(a);this.applyMatrix4(jc);return this},translate:function(a,b,d){jc.makeTranslation(a,b,d);this.applyMatrix4(jc);return this},scale:function(a,b,d){jc.makeScale(a,b,d);this.applyMatrix4(jc);return this},lookAt:function(a){ii.lookAt(a);ii.updateMatrix();this.applyMatrix4(ii.matrix);return this},center:function(){this.computeBoundingBox();this.boundingBox.getCenter(xe).negate();
|
|
|
+[]},setDrawRange:function(a,b){this.drawRange.start=a;this.drawRange.count=b},applyMatrix4:function(a){var b=this.attributes.position;void 0!==b&&(b.applyMatrix4(a),b.needsUpdate=!0);b=this.attributes.normal;if(void 0!==b){var d=(new Da).getNormalMatrix(a);b.applyNormalMatrix(d);b.needsUpdate=!0}b=this.attributes.tangent;void 0!==b&&(b.transformDirection(a),b.needsUpdate=!0);null!==this.boundingBox&&this.computeBoundingBox();null!==this.boundingSphere&&this.computeBoundingSphere();return this},rotateX:function(a){ic.makeRotationX(a);
|
|
|
+this.applyMatrix4(ic);return this},rotateY:function(a){ic.makeRotationY(a);this.applyMatrix4(ic);return this},rotateZ:function(a){ic.makeRotationZ(a);this.applyMatrix4(ic);return this},translate:function(a,b,d){ic.makeTranslation(a,b,d);this.applyMatrix4(ic);return this},scale:function(a,b,d){ic.makeScale(a,b,d);this.applyMatrix4(ic);return this},lookAt:function(a){ii.lookAt(a);ii.updateMatrix();this.applyMatrix4(ii.matrix);return this},center:function(){this.computeBoundingBox();this.boundingBox.getCenter(xe).negate();
|
|
|
this.translate(xe.x,xe.y,xe.z);return this},setFromObject:function(a){var b=a.geometry;if(a.isPoints||a.isLine){a=new ea(3*b.vertices.length,3);var d=new ea(3*b.colors.length,3);this.setAttribute("position",a.copyVector3sArray(b.vertices));this.setAttribute("color",d.copyColorsArray(b.colors));b.lineDistances&&b.lineDistances.length===b.vertices.length&&(a=new ea(b.lineDistances.length,1),this.setAttribute("lineDistance",a.copyArray(b.lineDistances)));null!==b.boundingSphere&&(this.boundingSphere=
|
|
|
b.boundingSphere.clone());null!==b.boundingBox&&(this.boundingBox=b.boundingBox.clone())}else a.isMesh&&b&&b.isGeometry&&this.fromGeometry(b);return this},setFromPoints:function(a){for(var b=[],d=0,e=a.length;d<e;d++){var f=a[d];b.push(f.x,f.y,f.z||0)}this.setAttribute("position",new ea(b,3));return this},updateFromObject:function(a){var b=a.geometry;if(a.isMesh){var d=b.__directGeometry;!0===b.elementsNeedUpdate&&(d=void 0,b.elementsNeedUpdate=!1);if(void 0===d)return this.fromGeometry(b);d.verticesNeedUpdate=
|
|
|
b.verticesNeedUpdate;d.normalsNeedUpdate=b.normalsNeedUpdate;d.colorsNeedUpdate=b.colorsNeedUpdate;d.uvsNeedUpdate=b.uvsNeedUpdate;d.groupsNeedUpdate=b.groupsNeedUpdate;b.verticesNeedUpdate=!1;b.normalsNeedUpdate=!1;b.colorsNeedUpdate=!1;b.uvsNeedUpdate=!1;b.groupsNeedUpdate=!1;b=d}!0===b.verticesNeedUpdate&&(d=this.attributes.position,void 0!==d&&(d.copyVector3sArray(b.vertices),d.needsUpdate=!0),b.verticesNeedUpdate=!1);!0===b.normalsNeedUpdate&&(d=this.attributes.normal,void 0!==d&&(d.copyVector3sArray(b.normals),
|
|
@@ -572,9 +572,9 @@ a.material;this.geometry=a.geometry;return this},updateMorphTargets:function(){v
|
|
|
raycast:function(a,b){var d=this.geometry,e=this.material,f=this.matrixWorld;if(void 0!==e&&(null===d.boundingSphere&&d.computeBoundingSphere(),ji.copy(d.boundingSphere),ji.applyMatrix4(f),!1!==a.ray.intersectsSphere(ji)&&(Ej.getInverse(f),ud.copy(a.ray).applyMatrix4(Ej),null===d.boundingBox||!1!==ud.intersectsBox(d.boundingBox))))if(d.isBufferGeometry){var g=d.index,h=d.attributes.position;f=d.morphAttributes.position;var k=d.morphTargetsRelative,l=d.attributes.uv,m=d.attributes.uv2,n=d.groups,p=
|
|
|
d.drawRange;if(null!==g)if(Array.isArray(e))for(var t=0,q=n.length;t<q;t++)for(var v=n[t],u=e[v.materialIndex],A=Math.max(v.start,p.start),B=Math.min(v.start+v.count,p.start+p.count);A<B;A+=3){d=g.getX(A);var D=g.getX(A+1),G=g.getX(A+2);if(d=Qf(this,u,a,ud,h,f,k,l,m,d,D,G))d.faceIndex=Math.floor(A/3),d.face.materialIndex=v.materialIndex,b.push(d)}else for(n=Math.max(0,p.start),p=Math.min(g.count,p.start+p.count);n<p;n+=3){if(d=g.getX(n),t=g.getX(n+1),q=g.getX(n+2),d=Qf(this,e,a,ud,h,f,k,l,m,d,t,q))d.faceIndex=
|
|
|
Math.floor(n/3),b.push(d)}else if(void 0!==h)if(Array.isArray(e))for(g=0,t=n.length;g<t;g++)for(q=n[g],v=e[q.materialIndex],u=Math.max(q.start,p.start),A=Math.min(q.start+q.count,p.start+p.count);u<A;u+=3){if(d=Qf(this,v,a,ud,h,f,k,l,m,u,u+1,u+2))d.faceIndex=Math.floor(u/3),d.face.materialIndex=q.materialIndex,b.push(d)}else for(n=Math.max(0,p.start),p=Math.min(h.count,p.start+p.count);n<p;n+=3)if(d=Qf(this,e,a,ud,h,f,k,l,m,n,n+1,n+2))d.faceIndex=Math.floor(n/3),b.push(d)}else if(d.isGeometry)for(f=
|
|
|
-Array.isArray(e),k=d.vertices,l=d.faces,d=d.faceVertexUvs[0],0<d.length&&(h=d),m=0,p=l.length;m<p;m++)if(n=l[m],d=f?e[n.materialIndex]:e,void 0!==d&&(g=k[n.a],t=k[n.b],q=k[n.c],d=wi(this,d,a,ud,g,t,q,Je)))h&&h[m]&&(v=h[m],Dd.copy(v[0]),Ed.copy(v[1]),Fd.copy(v[2]),d.uv=Ga.getUV(Je,g,t,q,Dd,Ed,Fd,new L)),d.face=n,d.faceIndex=m,b.push(d)}});var lk=0,kc=new da,ki=new ha,Kg=new w;sa.prototype=Object.assign(Object.create(wb.prototype),{constructor:sa,isGeometry:!0,applyMatrix4:function(a){for(var b=(new Da).getNormalMatrix(a),
|
|
|
-d=0,e=this.vertices.length;d<e;d++)this.vertices[d].applyMatrix4(a);a=0;for(d=this.faces.length;a<d;a++){e=this.faces[a];e.normal.applyMatrix3(b).normalize();for(var f=0,g=e.vertexNormals.length;f<g;f++)e.vertexNormals[f].applyMatrix3(b).normalize()}null!==this.boundingBox&&this.computeBoundingBox();null!==this.boundingSphere&&this.computeBoundingSphere();this.normalsNeedUpdate=this.verticesNeedUpdate=!0;return this},rotateX:function(a){kc.makeRotationX(a);this.applyMatrix4(kc);return this},rotateY:function(a){kc.makeRotationY(a);
|
|
|
-this.applyMatrix4(kc);return this},rotateZ:function(a){kc.makeRotationZ(a);this.applyMatrix4(kc);return this},translate:function(a,b,d){kc.makeTranslation(a,b,d);this.applyMatrix4(kc);return this},scale:function(a,b,d){kc.makeScale(a,b,d);this.applyMatrix4(kc);return this},lookAt:function(a){ki.lookAt(a);ki.updateMatrix();this.applyMatrix4(ki.matrix);return this},fromBufferGeometry:function(a){function b(q,v,u,A){var B=void 0===k?[]:[d.colors[q].clone(),d.colors[v].clone(),d.colors[u].clone()],D=
|
|
|
+Array.isArray(e),k=d.vertices,l=d.faces,d=d.faceVertexUvs[0],0<d.length&&(h=d),m=0,p=l.length;m<p;m++)if(n=l[m],d=f?e[n.materialIndex]:e,void 0!==d&&(g=k[n.a],t=k[n.b],q=k[n.c],d=wi(this,d,a,ud,g,t,q,Je)))h&&h[m]&&(v=h[m],Dd.copy(v[0]),Ed.copy(v[1]),Fd.copy(v[2]),d.uv=Ga.getUV(Je,g,t,q,Dd,Ed,Fd,new L)),d.face=n,d.faceIndex=m,b.push(d)}});var lk=0,jc=new da,ki=new ha,Kg=new w;sa.prototype=Object.assign(Object.create(wb.prototype),{constructor:sa,isGeometry:!0,applyMatrix4:function(a){for(var b=(new Da).getNormalMatrix(a),
|
|
|
+d=0,e=this.vertices.length;d<e;d++)this.vertices[d].applyMatrix4(a);a=0;for(d=this.faces.length;a<d;a++){e=this.faces[a];e.normal.applyMatrix3(b).normalize();for(var f=0,g=e.vertexNormals.length;f<g;f++)e.vertexNormals[f].applyMatrix3(b).normalize()}null!==this.boundingBox&&this.computeBoundingBox();null!==this.boundingSphere&&this.computeBoundingSphere();this.normalsNeedUpdate=this.verticesNeedUpdate=!0;return this},rotateX:function(a){jc.makeRotationX(a);this.applyMatrix4(jc);return this},rotateY:function(a){jc.makeRotationY(a);
|
|
|
+this.applyMatrix4(jc);return this},rotateZ:function(a){jc.makeRotationZ(a);this.applyMatrix4(jc);return this},translate:function(a,b,d){jc.makeTranslation(a,b,d);this.applyMatrix4(jc);return this},scale:function(a,b,d){jc.makeScale(a,b,d);this.applyMatrix4(jc);return this},lookAt:function(a){ki.lookAt(a);ki.updateMatrix();this.applyMatrix4(ki.matrix);return this},fromBufferGeometry:function(a){function b(q,v,u,A){var B=void 0===k?[]:[d.colors[q].clone(),d.colors[v].clone(),d.colors[u].clone()],D=
|
|
|
void 0===h?[]:[(new w).fromBufferAttribute(h,q),(new w).fromBufferAttribute(h,v),(new w).fromBufferAttribute(h,u)];A=new bd(q,v,u,D,B,A);d.faces.push(A);void 0!==l&&d.faceVertexUvs[0].push([(new L).fromBufferAttribute(l,q),(new L).fromBufferAttribute(l,v),(new L).fromBufferAttribute(l,u)]);void 0!==m&&d.faceVertexUvs[1].push([(new L).fromBufferAttribute(m,q),(new L).fromBufferAttribute(m,v),(new L).fromBufferAttribute(m,u)])}var d=this,e=null!==a.index?a.index:void 0,f=a.attributes;if(void 0===f.position)return console.error("THREE.Geometry.fromBufferGeometry(): Position attribute required for conversion."),
|
|
|
this;var g=f.position,h=f.normal,k=f.color,l=f.uv,m=f.uv2;void 0!==m&&(this.faceVertexUvs[1]=[]);for(f=0;f<g.count;f++)d.vertices.push((new w).fromBufferAttribute(g,f)),void 0!==k&&d.colors.push((new S).fromBufferAttribute(k,f));f=a.groups;if(0<f.length)for(g=0;g<f.length;g++){var n=f[g],p=n.start,t=p;for(p+=n.count;t<p;t+=3)void 0!==e?b(e.getX(t),e.getX(t+1),e.getX(t+2),n.materialIndex):b(t,t+1,t+2,n.materialIndex)}else if(void 0!==e)for(f=0;f<e.count;f+=3)b(e.getX(f),e.getX(f+1),e.getX(f+2));else for(e=
|
|
|
0;e<g.count;e+=3)b(e,e+1,e+2);this.computeFaceNormals();null!==a.boundingBox&&(this.boundingBox=a.boundingBox.clone());null!==a.boundingSphere&&(this.boundingSphere=a.boundingSphere.clone());return this},center:function(){this.computeBoundingBox();this.boundingBox.getCenter(Kg).negate();this.translate(Kg.x,Kg.y,Kg.z);return this},normalize:function(){this.computeBoundingSphere();var a=this.boundingSphere.center,b=this.boundingSphere.radius;b=0===b?1:1/b;var d=new da;d.set(b,0,0,-b*a.x,0,b,0,-b*a.y,
|
|
@@ -693,8 +693,8 @@ fa.normalmap,fa.displacementmap,fa.roughnessmap,fa.metalnessmap,fa.fog,fa.lights
|
|
|
fa.bumpmap,fa.normalmap,fa.displacementmap,fa.fog,{matcap:{value:null}}]),vertexShader:Ba.meshmatcap_vert,fragmentShader:Ba.meshmatcap_frag},points:{uniforms:nb([fa.points,fa.fog]),vertexShader:Ba.points_vert,fragmentShader:Ba.points_frag},dashed:{uniforms:nb([fa.common,fa.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Ba.linedashed_vert,fragmentShader:Ba.linedashed_frag},depth:{uniforms:nb([fa.common,fa.displacementmap]),vertexShader:Ba.depth_vert,fragmentShader:Ba.depth_frag},
|
|
|
normal:{uniforms:nb([fa.common,fa.bumpmap,fa.normalmap,fa.displacementmap,{opacity:{value:1}}]),vertexShader:Ba.normal_vert,fragmentShader:Ba.normal_frag},sprite:{uniforms:nb([fa.sprite,fa.fog]),vertexShader:Ba.sprite_vert,fragmentShader:Ba.sprite_frag},background:{uniforms:{uvTransform:{value:new Da},t2D:{value:null}},vertexShader:Ba.background_vert,fragmentShader:Ba.background_frag},cube:{uniforms:nb([fa.envmap,{opacity:{value:1}}]),vertexShader:Ba.cube_vert,fragmentShader:Ba.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},
|
|
|
vertexShader:Ba.equirect_vert,fragmentShader:Ba.equirect_frag},distanceRGBA:{uniforms:nb([fa.common,fa.displacementmap,{referencePosition:{value:new w},nearDistance:{value:1},farDistance:{value:1E3}}]),vertexShader:Ba.distanceRGBA_vert,fragmentShader:Ba.distanceRGBA_frag},shadow:{uniforms:nb([fa.lights,fa.fog,{color:{value:new S(0)},opacity:{value:1}}]),vertexShader:Ba.shadow_vert,fragmentShader:Ba.shadow_frag}};Qb.physical={uniforms:nb([Qb.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},
|
|
|
-clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new L(1,1)},clearcoatNormalMap:{value:null},sheen:{value:new S(0)},transmission:{value:0},transmissionMap:{value:null}}]),vertexShader:Ba.meshphysical_vert,fragmentShader:Ba.meshphysical_frag};lc.prototype=Object.create(Oa.prototype);lc.prototype.constructor=lc;lc.prototype.isCubeTexture=!0;Object.defineProperty(lc.prototype,"images",{get:function(){return this.image},set:function(a){this.image=a}});Jd.prototype=
|
|
|
-Object.create(Oa.prototype);Jd.prototype.constructor=Jd;Jd.prototype.isDataTexture2DArray=!0;Kd.prototype=Object.create(Oa.prototype);Kd.prototype.constructor=Kd;Kd.prototype.isDataTexture3D=!0;var Ei=new Oa,Kk=new Jd,Mk=new Kd,Fi=new lc,yi=[],Ai=[],Di=new Float32Array(16),Ci=new Float32Array(9),Bi=new Float32Array(4);Gi.prototype.updateCache=function(a){var b=this.cache;a instanceof Float32Array&&b.length!==a.length&&(this.cache=new Float32Array(a.length));Fb(b,a)};Hi.prototype.setValue=function(a,
|
|
|
+clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatNormalScale:{value:new L(1,1)},clearcoatNormalMap:{value:null},sheen:{value:new S(0)},transmission:{value:0},transmissionMap:{value:null}}]),vertexShader:Ba.meshphysical_vert,fragmentShader:Ba.meshphysical_frag};kc.prototype=Object.create(Oa.prototype);kc.prototype.constructor=kc;kc.prototype.isCubeTexture=!0;Object.defineProperty(kc.prototype,"images",{get:function(){return this.image},set:function(a){this.image=a}});Jd.prototype=
|
|
|
+Object.create(Oa.prototype);Jd.prototype.constructor=Jd;Jd.prototype.isDataTexture2DArray=!0;Kd.prototype=Object.create(Oa.prototype);Kd.prototype.constructor=Kd;Kd.prototype.isDataTexture3D=!0;var Ei=new Oa,Kk=new Jd,Mk=new Kd,Fi=new kc,yi=[],Ai=[],Di=new Float32Array(16),Ci=new Float32Array(9),Bi=new Float32Array(4);Gi.prototype.updateCache=function(a){var b=this.cache;a instanceof Float32Array&&b.length!==a.length&&(this.cache=new Float32Array(a.length));Fb(b,a)};Hi.prototype.setValue=function(a,
|
|
|
b,d){for(var e=this.seq,f=0,g=e.length;f!==g;++f){var h=e[f];h.setValue(a,b[h.id],d)}};var lh=/([\w\d_]+)(\])?(\[|\.)?/g;Ec.prototype.setValue=function(a,b,d,e){b=this.map[b];void 0!==b&&b.setValue(a,d,e)};Ec.prototype.setOptional=function(a,b,d){b=b[d];void 0!==b&&this.setValue(a,d,b)};Ec.upload=function(a,b,d,e){for(var f=0,g=b.length;f!==g;++f){var h=b[f],k=d[h.id];!1!==k.needsUpdate&&h.setValue(a,k.value,e)}};Ec.seqWithValue=function(a,b){for(var d=[],e=0,f=a.length;e!==f;++e){var g=a[e];g.id in
|
|
|
b&&d.push(g)}return d};var ql=0,nh=/^[ \t]*#include +<([\w\d./]+)>/gm,Qi=/#pragma unroll_loop[\s]+?for \( int i = (\d+); i < (\d+); i \+\+ \) \{([\s\S]+?)(?=\})\}/g,Pi=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g,Al=0;Fc.prototype=Object.create(ra.prototype);Fc.prototype.constructor=Fc;Fc.prototype.isMeshDepthMaterial=!0;Fc.prototype.copy=function(a){ra.prototype.copy.call(this,a);this.depthPacking=a.depthPacking;
|
|
|
this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.map=a.map;this.alphaMap=a.alphaMap;this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;return this};Gc.prototype=Object.create(ra.prototype);Gc.prototype.constructor=Gc;Gc.prototype.isMeshDistanceMaterial=!0;Gc.prototype.copy=function(a){ra.prototype.copy.call(this,a);this.referencePosition.copy(a.referencePosition);
|
|
@@ -742,15 +742,15 @@ this.geometry;if(a.isBufferGeometry){a=a.morphAttributes;var b=Object.keys(a);if
|
|
|
Sd.prototype.constructor=Sd;We.prototype=Object.create(sa.prototype);We.prototype.constructor=We;Td.prototype=Object.create(ka.prototype);Td.prototype.constructor=Td;Xe.prototype=Object.create(sa.prototype);Xe.prototype.constructor=Xe;zb.prototype=Object.create(ka.prototype);zb.prototype.constructor=zb;Ye.prototype=Object.create(sa.prototype);Ye.prototype.constructor=Ye;Ud.prototype=Object.create(zb.prototype);Ud.prototype.constructor=Ud;Ze.prototype=Object.create(sa.prototype);Ze.prototype.constructor=
|
|
|
Ze;gd.prototype=Object.create(zb.prototype);gd.prototype.constructor=gd;$e.prototype=Object.create(sa.prototype);$e.prototype.constructor=$e;Vd.prototype=Object.create(zb.prototype);Vd.prototype.constructor=Vd;af.prototype=Object.create(sa.prototype);af.prototype.constructor=af;Wd.prototype=Object.create(zb.prototype);Wd.prototype.constructor=Wd;bf.prototype=Object.create(sa.prototype);bf.prototype.constructor=bf;hd.prototype=Object.create(ka.prototype);hd.prototype.constructor=hd;hd.prototype.toJSON=
|
|
|
function(){var a=ka.prototype.toJSON.call(this);a.path=this.parameters.path.toJSON();return a};cf.prototype=Object.create(sa.prototype);cf.prototype.constructor=cf;Xd.prototype=Object.create(ka.prototype);Xd.prototype.constructor=Xd;df.prototype=Object.create(sa.prototype);df.prototype.constructor=df;Yd.prototype=Object.create(ka.prototype);Yd.prototype.constructor=Yd;var Wl={triangulate:function(a,b,d){d=d||2;var e=b&&b.length,f=e?b[0]*d:a.length,g=bj(a,0,f,d,!0),h=[];if(!g||g.next===g.prev)return h;
|
|
|
-var k;if(e){var l=d;e=[];var m;var n=0;for(m=b.length;n<m;n++){var p=b[n]*l;var t=n<m-1?b[n+1]*l:a.length;p=bj(a,p,t,l,!1);p===p.next&&(p.steiner=!0);e.push(Il(p))}e.sort(Gl);for(n=0;n<e.length;n++){l=e[n];b=g;if(b=Hl(l,b))l=ej(b,l),Nc(b,b.next),Nc(l,l.next);g=Nc(g,g.next)}}if(a.length>80*d){var q=k=a[0];var v=e=a[1];for(l=d;l<f;l+=d)n=a[l],b=a[l+1],n<q&&(q=n),b<v&&(v=b),n>k&&(k=n),b>e&&(e=b);k=Math.max(k-q,e-v);k=0!==k?1/k:0}ff(g,h,d,q,v,k);return h}},oc={area:function(a){for(var b=a.length,d=0,
|
|
|
-e=b-1,f=0;f<b;e=f++)d+=a[e].x*a[f].y-a[f].x*a[e].y;return.5*d},isClockWise:function(a){return 0>oc.area(a)},triangulateShape:function(a,b){var d=[],e=[],f=[];fj(a);gj(d,a);a=a.length;b.forEach(fj);for(var g=0;g<b.length;g++)e.push(a),a+=b[g].length,gj(d,b[g]);b=Wl.triangulate(d,e);for(d=0;d<b.length;d+=3)f.push(b.slice(d,d+3));return f}};id.prototype=Object.create(sa.prototype);id.prototype.constructor=id;id.prototype.toJSON=function(){var a=sa.prototype.toJSON.call(this);return hj(this.parameters.shapes,
|
|
|
+var k;if(e){var l=d;e=[];var m;var n=0;for(m=b.length;n<m;n++){var p=b[n]*l;var t=n<m-1?b[n+1]*l:a.length;p=bj(a,p,t,l,!1);p===p.next&&(p.steiner=!0);e.push(Il(p))}e.sort(Gl);for(n=0;n<e.length;n++){l=e[n];b=g;if(b=Hl(l,b))l=ej(b,l),Nc(b,b.next),Nc(l,l.next);g=Nc(g,g.next)}}if(a.length>80*d){var q=k=a[0];var v=e=a[1];for(l=d;l<f;l+=d)n=a[l],b=a[l+1],n<q&&(q=n),b<v&&(v=b),n>k&&(k=n),b>e&&(e=b);k=Math.max(k-q,e-v);k=0!==k?1/k:0}ff(g,h,d,q,v,k);return h}},nc={area:function(a){for(var b=a.length,d=0,
|
|
|
+e=b-1,f=0;f<b;e=f++)d+=a[e].x*a[f].y-a[f].x*a[e].y;return.5*d},isClockWise:function(a){return 0>nc.area(a)},triangulateShape:function(a,b){var d=[],e=[],f=[];fj(a);gj(d,a);a=a.length;b.forEach(fj);for(var g=0;g<b.length;g++)e.push(a),a+=b[g].length,gj(d,b[g]);b=Wl.triangulate(d,e);for(d=0;d<b.length;d+=3)f.push(b.slice(d,d+3));return f}};id.prototype=Object.create(sa.prototype);id.prototype.constructor=id;id.prototype.toJSON=function(){var a=sa.prototype.toJSON.call(this);return hj(this.parameters.shapes,
|
|
|
this.parameters.options,a)};cc.prototype=Object.create(ka.prototype);cc.prototype.constructor=cc;cc.prototype.toJSON=function(){var a=ka.prototype.toJSON.call(this);return hj(this.parameters.shapes,this.parameters.options,a)};var Jl={generateTopUV:function(a,b,d,e,f){a=b[3*e];e=b[3*e+1];var g=b[3*f];f=b[3*f+1];return[new L(b[3*d],b[3*d+1]),new L(a,e),new L(g,f)]},generateSideWallUV:function(a,b,d,e,f,g){a=b[3*d];var h=b[3*d+1];d=b[3*d+2];var k=b[3*e],l=b[3*e+1];e=b[3*e+2];var m=b[3*f],n=b[3*f+1];
|
|
|
f=b[3*f+2];var p=b[3*g],t=b[3*g+1];b=b[3*g+2];return.01>Math.abs(h-l)?[new L(a,1-d),new L(k,1-e),new L(m,1-f),new L(p,1-b)]:[new L(h,1-d),new L(l,1-e),new L(n,1-f),new L(t,1-b)]}};hf.prototype=Object.create(sa.prototype);hf.prototype.constructor=hf;$d.prototype=Object.create(cc.prototype);$d.prototype.constructor=$d;jf.prototype=Object.create(sa.prototype);jf.prototype.constructor=jf;jd.prototype=Object.create(ka.prototype);jd.prototype.constructor=jd;kf.prototype=Object.create(sa.prototype);kf.prototype.constructor=
|
|
|
kf;ae.prototype=Object.create(ka.prototype);ae.prototype.constructor=ae;lf.prototype=Object.create(sa.prototype);lf.prototype.constructor=lf;be.prototype=Object.create(ka.prototype);be.prototype.constructor=be;kd.prototype=Object.create(sa.prototype);kd.prototype.constructor=kd;kd.prototype.toJSON=function(){var a=sa.prototype.toJSON.call(this);return ij(this.parameters.shapes,a)};ld.prototype=Object.create(ka.prototype);ld.prototype.constructor=ld;ld.prototype.toJSON=function(){var a=ka.prototype.toJSON.call(this);
|
|
|
-return ij(this.parameters.shapes,a)};ce.prototype=Object.create(ka.prototype);ce.prototype.constructor=ce;md.prototype=Object.create(sa.prototype);md.prototype.constructor=md;pc.prototype=Object.create(ka.prototype);pc.prototype.constructor=pc;mf.prototype=Object.create(md.prototype);mf.prototype.constructor=mf;nf.prototype=Object.create(pc.prototype);nf.prototype.constructor=nf;of.prototype=Object.create(sa.prototype);of.prototype.constructor=of;de.prototype=Object.create(ka.prototype);de.prototype.constructor=
|
|
|
+return ij(this.parameters.shapes,a)};ce.prototype=Object.create(ka.prototype);ce.prototype.constructor=ce;md.prototype=Object.create(sa.prototype);md.prototype.constructor=md;oc.prototype=Object.create(ka.prototype);oc.prototype.constructor=oc;mf.prototype=Object.create(md.prototype);mf.prototype.constructor=mf;nf.prototype=Object.create(oc.prototype);nf.prototype.constructor=nf;of.prototype=Object.create(sa.prototype);of.prototype.constructor=of;de.prototype=Object.create(ka.prototype);de.prototype.constructor=
|
|
|
de;var vb=Object.freeze({__proto__:null,WireframeGeometry:Sd,ParametricGeometry:We,ParametricBufferGeometry:Td,TetrahedronGeometry:Ye,TetrahedronBufferGeometry:Ud,OctahedronGeometry:Ze,OctahedronBufferGeometry:gd,IcosahedronGeometry:$e,IcosahedronBufferGeometry:Vd,DodecahedronGeometry:af,DodecahedronBufferGeometry:Wd,PolyhedronGeometry:Xe,PolyhedronBufferGeometry:zb,TubeGeometry:bf,TubeBufferGeometry:hd,TorusKnotGeometry:cf,TorusKnotBufferGeometry:Xd,TorusGeometry:df,TorusBufferGeometry:Yd,TextGeometry:hf,
|
|
|
-TextBufferGeometry:$d,SphereGeometry:jf,SphereBufferGeometry:jd,RingGeometry:kf,RingBufferGeometry:ae,PlaneGeometry:Ke,PlaneBufferGeometry:dd,LatheGeometry:lf,LatheBufferGeometry:be,ShapeGeometry:kd,ShapeBufferGeometry:ld,ExtrudeGeometry:id,ExtrudeBufferGeometry:cc,EdgesGeometry:ce,ConeGeometry:mf,ConeBufferGeometry:nf,CylinderGeometry:md,CylinderBufferGeometry:pc,CircleGeometry:of,CircleBufferGeometry:de,BoxGeometry:Gd,BoxBufferGeometry:Cc});nd.prototype=Object.create(ra.prototype);nd.prototype.constructor=
|
|
|
-nd;nd.prototype.isShadowMaterial=!0;nd.prototype.copy=function(a){ra.prototype.copy.call(this,a);this.color.copy(a.color);return this};qc.prototype=Object.create(sb.prototype);qc.prototype.constructor=qc;qc.prototype.isRawShaderMaterial=!0;dc.prototype=Object.create(ra.prototype);dc.prototype.constructor=dc;dc.prototype.isMeshStandardMaterial=!0;dc.prototype.copy=function(a){ra.prototype.copy.call(this,a);this.defines={STANDARD:""};this.color.copy(a.color);this.roughness=a.roughness;this.metalness=
|
|
|
+TextBufferGeometry:$d,SphereGeometry:jf,SphereBufferGeometry:jd,RingGeometry:kf,RingBufferGeometry:ae,PlaneGeometry:Ke,PlaneBufferGeometry:dd,LatheGeometry:lf,LatheBufferGeometry:be,ShapeGeometry:kd,ShapeBufferGeometry:ld,ExtrudeGeometry:id,ExtrudeBufferGeometry:cc,EdgesGeometry:ce,ConeGeometry:mf,ConeBufferGeometry:nf,CylinderGeometry:md,CylinderBufferGeometry:oc,CircleGeometry:of,CircleBufferGeometry:de,BoxGeometry:Gd,BoxBufferGeometry:Cc});nd.prototype=Object.create(ra.prototype);nd.prototype.constructor=
|
|
|
+nd;nd.prototype.isShadowMaterial=!0;nd.prototype.copy=function(a){ra.prototype.copy.call(this,a);this.color.copy(a.color);return this};pc.prototype=Object.create(sb.prototype);pc.prototype.constructor=pc;pc.prototype.isRawShaderMaterial=!0;dc.prototype=Object.create(ra.prototype);dc.prototype.constructor=dc;dc.prototype.isMeshStandardMaterial=!0;dc.prototype.copy=function(a){ra.prototype.copy.call(this,a);this.defines={STANDARD:""};this.color.copy(a.color);this.roughness=a.roughness;this.metalness=
|
|
|
a.metalness;this.map=a.map;this.lightMap=a.lightMap;this.lightMapIntensity=a.lightMapIntensity;this.aoMap=a.aoMap;this.aoMapIntensity=a.aoMapIntensity;this.emissive.copy(a.emissive);this.emissiveMap=a.emissiveMap;this.emissiveIntensity=a.emissiveIntensity;this.bumpMap=a.bumpMap;this.bumpScale=a.bumpScale;this.normalMap=a.normalMap;this.normalMapType=a.normalMapType;this.normalScale.copy(a.normalScale);this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=
|
|
|
a.displacementBias;this.roughnessMap=a.roughnessMap;this.metalnessMap=a.metalnessMap;this.alphaMap=a.alphaMap;this.envMap=a.envMap;this.envMapIntensity=a.envMapIntensity;this.refractionRatio=a.refractionRatio;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;this.wireframeLinecap=a.wireframeLinecap;this.wireframeLinejoin=a.wireframeLinejoin;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.morphNormals=a.morphNormals;this.vertexTangents=a.vertexTangents;return this};
|
|
|
Oc.prototype=Object.create(dc.prototype);Oc.prototype.constructor=Oc;Oc.prototype.isMeshPhysicalMaterial=!0;Oc.prototype.copy=function(a){dc.prototype.copy.call(this,a);this.defines={STANDARD:"",PHYSICAL:""};this.clearcoat=a.clearcoat;this.clearcoatMap=a.clearcoatMap;this.clearcoatRoughness=a.clearcoatRoughness;this.clearcoatRoughnessMap=a.clearcoatRoughnessMap;this.clearcoatNormalMap=a.clearcoatNormalMap;this.clearcoatNormalScale.copy(a.clearcoatNormalScale);this.reflectivity=a.reflectivity;this.sheen=
|
|
@@ -763,7 +763,7 @@ a.bumpMap;this.bumpScale=a.bumpScale;this.normalMap=a.normalMap;this.normalMapTy
|
|
|
qd;qd.prototype.isMeshLambertMaterial=!0;qd.prototype.copy=function(a){ra.prototype.copy.call(this,a);this.color.copy(a.color);this.map=a.map;this.lightMap=a.lightMap;this.lightMapIntensity=a.lightMapIntensity;this.aoMap=a.aoMap;this.aoMapIntensity=a.aoMapIntensity;this.emissive.copy(a.emissive);this.emissiveMap=a.emissiveMap;this.emissiveIntensity=a.emissiveIntensity;this.specularMap=a.specularMap;this.alphaMap=a.alphaMap;this.envMap=a.envMap;this.combine=a.combine;this.reflectivity=a.reflectivity;
|
|
|
this.refractionRatio=a.refractionRatio;this.wireframe=a.wireframe;this.wireframeLinewidth=a.wireframeLinewidth;this.wireframeLinecap=a.wireframeLinecap;this.wireframeLinejoin=a.wireframeLinejoin;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.morphNormals=a.morphNormals;return this};rd.prototype=Object.create(ra.prototype);rd.prototype.constructor=rd;rd.prototype.isMeshMatcapMaterial=!0;rd.prototype.copy=function(a){ra.prototype.copy.call(this,a);this.defines={MATCAP:""};this.color.copy(a.color);
|
|
|
this.matcap=a.matcap;this.map=a.map;this.bumpMap=a.bumpMap;this.bumpScale=a.bumpScale;this.normalMap=a.normalMap;this.normalMapType=a.normalMapType;this.normalScale.copy(a.normalScale);this.displacementMap=a.displacementMap;this.displacementScale=a.displacementScale;this.displacementBias=a.displacementBias;this.alphaMap=a.alphaMap;this.skinning=a.skinning;this.morphTargets=a.morphTargets;this.morphNormals=a.morphNormals;return this};sd.prototype=Object.create(Ya.prototype);sd.prototype.constructor=
|
|
|
-sd;sd.prototype.isLineDashedMaterial=!0;sd.prototype.copy=function(a){Ya.prototype.copy.call(this,a);this.scale=a.scale;this.dashSize=a.dashSize;this.gapSize=a.gapSize;return this};var Xl=Object.freeze({__proto__:null,ShadowMaterial:nd,SpriteMaterial:Mc,RawShaderMaterial:qc,ShaderMaterial:sb,PointsMaterial:Sb,MeshPhysicalMaterial:Oc,MeshStandardMaterial:dc,MeshPhongMaterial:Pc,MeshToonMaterial:od,MeshNormalMaterial:pd,MeshLambertMaterial:qd,MeshDepthMaterial:Fc,MeshDistanceMaterial:Gc,MeshBasicMaterial:Lb,
|
|
|
+sd;sd.prototype.isLineDashedMaterial=!0;sd.prototype.copy=function(a){Ya.prototype.copy.call(this,a);this.scale=a.scale;this.dashSize=a.dashSize;this.gapSize=a.gapSize;return this};var Xl=Object.freeze({__proto__:null,ShadowMaterial:nd,SpriteMaterial:Mc,RawShaderMaterial:pc,ShaderMaterial:sb,PointsMaterial:Sb,MeshPhysicalMaterial:Oc,MeshStandardMaterial:dc,MeshPhongMaterial:Pc,MeshToonMaterial:od,MeshNormalMaterial:pd,MeshLambertMaterial:qd,MeshDepthMaterial:Fc,MeshDistanceMaterial:Gc,MeshBasicMaterial:Lb,
|
|
|
MeshMatcapMaterial:rd,LineDashedMaterial:sd,LineBasicMaterial:Ya,Material:ra}),Va={arraySlice:function(a,b,d){return Va.isTypedArray(a)?new a.constructor(a.subarray(b,void 0!==d?d:a.length)):a.slice(b,d)},convertArray:function(a,b,d){return!a||!d&&a.constructor===b?a:"number"===typeof b.BYTES_PER_ELEMENT?new b(a):Array.prototype.slice.call(a)},isTypedArray:function(a){return ArrayBuffer.isView(a)&&!(a instanceof DataView)},getKeyframeOrder:function(a){for(var b=a.length,d=Array(b),e=0;e!==b;++e)d[e]=
|
|
|
e;d.sort(function(f,g){return a[f]-a[g]});return d},sortedArray:function(a,b,d){for(var e=a.length,f=new a.constructor(e),g=0,h=0;h!==e;++g)for(var k=d[g]*b,l=0;l!==b;++l)f[h++]=a[k+l];return f},flattenJSON:function(a,b,d,e){for(var f=1,g=a[0];void 0!==g&&void 0===g[e];)g=a[f++];if(void 0!==g){var h=g[e];if(void 0!==h)if(Array.isArray(h)){do h=g[e],void 0!==h&&(b.push(g.time),d.push.apply(d,h)),g=a[f++];while(void 0!==g)}else if(void 0!==h.toArray){do h=g[e],void 0!==h&&(b.push(g.time),h.toArray(d,
|
|
|
d.length)),g=a[f++];while(void 0!==g)}else{do h=g[e],void 0!==h&&(b.push(g.time),d.push(h)),g=a[f++];while(void 0!==g)}}},subclip:function(a,b,d,e,f){f=f||30;a=a.clone();a.name=b;b=[];for(var g=0;g<a.tracks.length;++g){for(var h=a.tracks[g],k=h.getValueSize(),l=[],m=[],n=0;n<h.times.length;++n){var p=h.times[n]*f;if(!(p<d||p>=e))for(l.push(h.times[n]),p=0;p<k;++p)m.push(h.values[n*k+p])}0!==l.length&&(h.times=Va.convertArray(l,h.times.constructor),h.values=Va.convertArray(m,h.values.constructor),
|
|
@@ -799,7 +799,7 @@ this.responseType);void 0!==this.withCredentials&&(p.withCredentials=this.withCr
|
|
|
height:q.height,format:q.format,mipmaps:q.mipmaps};m+=1;6===m&&(1===q.mipmapCount&&(k.minFilter=1006),k.format=q.format,k.needsUpdate=!0,b&&b(k))},d,e)}var g=this,h=[],k=new Rd;k.image=h;var l=new Ob(this.manager);l.setPath(this.path);l.setResponseType("arraybuffer");l.setRequestHeader(this.requestHeader);var m=0;if(Array.isArray(a))for(var n=0,p=a.length;n<p;++n)f(n);else l.load(a,function(t){t=g.parse(t,!0);if(t.isCubemap)for(var q=t.mipmaps.length/t.mipmapCount,v=0;v<q;v++){h[v]={mipmaps:[]};for(var u=
|
|
|
0;u<t.mipmapCount;u++)h[v].mipmaps.push(t.mipmaps[v*t.mipmapCount+u]),h[v].format=t.format,h[v].width=t.width,h[v].height=t.height}else k.image.width=t.width,k.image.height=t.height,k.mipmaps=t.mipmaps;1===t.mipmapCount&&(k.minFilter=1006);k.format=t.format;k.needsUpdate=!0;b&&b(k)},d,e);return k}});ge.prototype=Object.assign(Object.create(Ma.prototype),{constructor:ge,load:function(a,b,d,e){function f(){l.removeEventListener("load",f,!1);l.removeEventListener("error",g,!1);wd.add(a,this);b&&b(this);
|
|
|
h.manager.itemEnd(a)}function g(m){l.removeEventListener("load",f,!1);l.removeEventListener("error",g,!1);e&&e(m);h.manager.itemError(a);h.manager.itemEnd(a)}void 0!==this.path&&(a=this.path+a);a=this.manager.resolveURL(a);var h=this,k=wd.get(a);if(void 0!==k)return h.manager.itemStart(a),setTimeout(function(){b&&b(k);h.manager.itemEnd(a)},0),k;var l=document.createElementNS("http://www.w3.org/1999/xhtml","img");l.addEventListener("load",f,!1);l.addEventListener("error",g,!1);"data:"!==a.substr(0,
|
|
|
-5)&&void 0!==this.crossOrigin&&(l.crossOrigin=this.crossOrigin);h.manager.itemStart(a);l.src=a;return l}});kg.prototype=Object.assign(Object.create(Ma.prototype),{constructor:kg,load:function(a,b,d,e){function f(l){h.load(a[l],function(m){g.images[l]=m;k++;6===k&&(g.needsUpdate=!0,b&&b(g))},void 0,e)}var g=new lc,h=new ge(this.manager);h.setCrossOrigin(this.crossOrigin);h.setPath(this.path);var k=0;for(d=0;d<a.length;++d)f(d);return g}});lg.prototype=Object.assign(Object.create(Ma.prototype),{constructor:lg,
|
|
|
+5)&&void 0!==this.crossOrigin&&(l.crossOrigin=this.crossOrigin);h.manager.itemStart(a);l.src=a;return l}});kg.prototype=Object.assign(Object.create(Ma.prototype),{constructor:kg,load:function(a,b,d,e){function f(l){h.load(a[l],function(m){g.images[l]=m;k++;6===k&&(g.needsUpdate=!0,b&&b(g))},void 0,e)}var g=new kc,h=new ge(this.manager);h.setCrossOrigin(this.crossOrigin);h.setPath(this.path);var k=0;for(d=0;d<a.length;++d)f(d);return g}});lg.prototype=Object.assign(Object.create(Ma.prototype),{constructor:lg,
|
|
|
load:function(a,b,d,e){var f=this,g=new cd,h=new Ob(this.manager);h.setResponseType("arraybuffer");h.setRequestHeader(this.requestHeader);h.setPath(this.path);h.load(a,function(k){if(k=f.parse(k))void 0!==k.image?g.image=k.image:void 0!==k.data&&(g.image.width=k.width,g.image.height=k.height,g.image.data=k.data),g.wrapS=void 0!==k.wrapS?k.wrapS:1001,g.wrapT=void 0!==k.wrapT?k.wrapT:1001,g.magFilter=void 0!==k.magFilter?k.magFilter:1006,g.minFilter=void 0!==k.minFilter?k.minFilter:1006,g.anisotropy=
|
|
|
void 0!==k.anisotropy?k.anisotropy:1,void 0!==k.format&&(g.format=k.format),void 0!==k.type&&(g.type=k.type),void 0!==k.mipmaps&&(g.mipmaps=k.mipmaps,g.minFilter=1008),1===k.mipmapCount&&(g.minFilter=1006),g.needsUpdate=!0,b&&b(g,k)},d,e);return g}});mg.prototype=Object.assign(Object.create(Ma.prototype),{constructor:mg,load:function(a,b,d,e){var f=new Oa,g=new ge(this.manager);g.setCrossOrigin(this.crossOrigin);g.setPath(this.path);g.load(a,function(h){f.image=h;h=0<a.search(/\.jpe?g($|\?)/i)||0===
|
|
|
a.search(/^data:image\/jpeg/);f.format=h?1022:1023;f.needsUpdate=!0;void 0!==b&&b(f)},d,e);return f}});Object.assign(oa.prototype,{getPoint:function(){console.warn("THREE.Curve: .getPoint() not implemented.");return null},getPointAt:function(a,b){a=this.getUtoTmapping(a);return this.getPoint(a,b)},getPoints:function(a){void 0===a&&(a=5);for(var b=[],d=0;d<=a;d++)b.push(this.getPoint(d/a));return b},getSpacedPoints:function(a){void 0===a&&(a=5);for(var b=[],d=0;d<=a;d++)b.push(this.getPointAt(d/a));
|
|
@@ -824,26 +824,26 @@ Vb.prototype.constructor=Vb;Vb.prototype.isQuadraticBezierCurve=!0;Vb.prototype.
|
|
|
function(a){oa.prototype.fromJSON.call(this,a);this.v0.fromArray(a.v0);this.v1.fromArray(a.v1);this.v2.fromArray(a.v2);return this};fc.prototype=Object.create(oa.prototype);fc.prototype.constructor=fc;fc.prototype.isQuadraticBezierCurve3=!0;fc.prototype.getPoint=function(a,b){b=b||new w;var d=this.v0,e=this.v1,f=this.v2;b.set(rf(a,d.x,e.x,f.x),rf(a,d.y,e.y,f.y),rf(a,d.z,e.z,f.z));return b};fc.prototype.copy=function(a){oa.prototype.copy.call(this,a);this.v0.copy(a.v0);this.v1.copy(a.v1);this.v2.copy(a.v2);
|
|
|
return this};fc.prototype.toJSON=function(){var a=oa.prototype.toJSON.call(this);a.v0=this.v0.toArray();a.v1=this.v1.toArray();a.v2=this.v2.toArray();return a};fc.prototype.fromJSON=function(a){oa.prototype.fromJSON.call(this,a);this.v0.fromArray(a.v0);this.v1.fromArray(a.v1);this.v2.fromArray(a.v2);return this};Wb.prototype=Object.create(oa.prototype);Wb.prototype.constructor=Wb;Wb.prototype.isSplineCurve=!0;Wb.prototype.getPoint=function(a,b){b=b||new L;var d=this.points,e=(d.length-1)*a;a=Math.floor(e);
|
|
|
e-=a;var f=d[0===a?a:a-1],g=d[a],h=d[a>d.length-2?d.length-1:a+1];d=d[a>d.length-3?d.length-1:a+2];b.set(kj(e,f.x,g.x,h.x,d.x),kj(e,f.y,g.y,h.y,d.y));return b};Wb.prototype.copy=function(a){oa.prototype.copy.call(this,a);this.points=[];for(var b=0,d=a.points.length;b<d;b++)this.points.push(a.points[b].clone());return this};Wb.prototype.toJSON=function(){var a=oa.prototype.toJSON.call(this);a.points=[];for(var b=0,d=this.points.length;b<d;b++)a.points.push(this.points[b].toArray());return a};Wb.prototype.fromJSON=
|
|
|
-function(a){oa.prototype.fromJSON.call(this,a);this.points=[];for(var b=0,d=a.points.length;b<d;b++){var e=a.points[b];this.points.push((new L).fromArray(e))}return this};var pi=Object.freeze({__proto__:null,ArcCurve:he,CatmullRomCurve3:ob,CubicBezierCurve:Tb,CubicBezierCurve3:ec,EllipseCurve:Jb,LineCurve:Ab,LineCurve3:Ub,QuadraticBezierCurve:Vb,QuadraticBezierCurve3:fc,SplineCurve:Wb});rc.prototype=Object.assign(Object.create(oa.prototype),{constructor:rc,add:function(a){this.curves.push(a)},closePath:function(){var a=
|
|
|
+function(a){oa.prototype.fromJSON.call(this,a);this.points=[];for(var b=0,d=a.points.length;b<d;b++){var e=a.points[b];this.points.push((new L).fromArray(e))}return this};var pi=Object.freeze({__proto__:null,ArcCurve:he,CatmullRomCurve3:ob,CubicBezierCurve:Tb,CubicBezierCurve3:ec,EllipseCurve:Jb,LineCurve:Ab,LineCurve3:Ub,QuadraticBezierCurve:Vb,QuadraticBezierCurve3:fc,SplineCurve:Wb});qc.prototype=Object.assign(Object.create(oa.prototype),{constructor:qc,add:function(a){this.curves.push(a)},closePath:function(){var a=
|
|
|
this.curves[0].getPoint(0),b=this.curves[this.curves.length-1].getPoint(1);a.equals(b)||this.curves.push(new Ab(b,a))},getPoint:function(a){var b=a*this.getLength(),d=this.getCurveLengths();for(a=0;a<d.length;){if(d[a]>=b)return b=d[a]-b,a=this.curves[a],d=a.getLength(),a.getPointAt(0===d?0:1-b/d);a++}return null},getLength:function(){var a=this.getCurveLengths();return a[a.length-1]},updateArcLengths:function(){this.needsUpdate=!0;this.cacheLengths=null;this.getCurveLengths()},getCurveLengths:function(){if(this.cacheLengths&&
|
|
|
this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var a=[],b=0,d=0,e=this.curves.length;d<e;d++)b+=this.curves[d].getLength(),a.push(b);return this.cacheLengths=a},getSpacedPoints:function(a){void 0===a&&(a=40);for(var b=[],d=0;d<=a;d++)b.push(this.getPoint(d/a));this.autoClose&&b.push(b[0]);return b},getPoints:function(a){a=a||12;for(var b=[],d,e=0,f=this.curves;e<f.length;e++){var g=f[e];g=g.getPoints(g&&g.isEllipseCurve?2*a:g&&(g.isLineCurve||g.isLineCurve3)?1:g&&g.isSplineCurve?
|
|
|
a*g.points.length:a);for(var h=0;h<g.length;h++){var k=g[h];d&&d.equals(k)||(b.push(k),d=k)}}this.autoClose&&1<b.length&&!b[b.length-1].equals(b[0])&&b.push(b[0]);return b},copy:function(a){oa.prototype.copy.call(this,a);this.curves=[];for(var b=0,d=a.curves.length;b<d;b++)this.curves.push(a.curves[b].clone());this.autoClose=a.autoClose;return this},toJSON:function(){var a=oa.prototype.toJSON.call(this);a.autoClose=this.autoClose;a.curves=[];for(var b=0,d=this.curves.length;b<d;b++)a.curves.push(this.curves[b].toJSON());
|
|
|
-return a},fromJSON:function(a){oa.prototype.fromJSON.call(this,a);this.autoClose=a.autoClose;this.curves=[];for(var b=0,d=a.curves.length;b<d;b++){var e=a.curves[b];this.curves.push((new pi[e.type]).fromJSON(e))}return this}});Xb.prototype=Object.assign(Object.create(rc.prototype),{constructor:Xb,setFromPoints:function(a){this.moveTo(a[0].x,a[0].y);for(var b=1,d=a.length;b<d;b++)this.lineTo(a[b].x,a[b].y);return this},moveTo:function(a,b){this.currentPoint.set(a,b);return this},lineTo:function(a,
|
|
|
+return a},fromJSON:function(a){oa.prototype.fromJSON.call(this,a);this.autoClose=a.autoClose;this.curves=[];for(var b=0,d=a.curves.length;b<d;b++){var e=a.curves[b];this.curves.push((new pi[e.type]).fromJSON(e))}return this}});Xb.prototype=Object.assign(Object.create(qc.prototype),{constructor:Xb,setFromPoints:function(a){this.moveTo(a[0].x,a[0].y);for(var b=1,d=a.length;b<d;b++)this.lineTo(a[b].x,a[b].y);return this},moveTo:function(a,b){this.currentPoint.set(a,b);return this},lineTo:function(a,
|
|
|
b){var d=new Ab(this.currentPoint.clone(),new L(a,b));this.curves.push(d);this.currentPoint.set(a,b);return this},quadraticCurveTo:function(a,b,d,e){a=new Vb(this.currentPoint.clone(),new L(a,b),new L(d,e));this.curves.push(a);this.currentPoint.set(d,e);return this},bezierCurveTo:function(a,b,d,e,f,g){a=new Tb(this.currentPoint.clone(),new L(a,b),new L(d,e),new L(f,g));this.curves.push(a);this.currentPoint.set(f,g);return this},splineThru:function(a){var b=[this.currentPoint.clone()].concat(a);b=
|
|
|
new Wb(b);this.curves.push(b);this.currentPoint.copy(a[a.length-1]);return this},arc:function(a,b,d,e,f,g){this.absarc(a+this.currentPoint.x,b+this.currentPoint.y,d,e,f,g);return this},absarc:function(a,b,d,e,f,g){this.absellipse(a,b,d,d,e,f,g);return this},ellipse:function(a,b,d,e,f,g,h,k){this.absellipse(a+this.currentPoint.x,b+this.currentPoint.y,d,e,f,g,h,k);return this},absellipse:function(a,b,d,e,f,g,h,k){a=new Jb(a,b,d,e,f,g,h,k);0<this.curves.length&&(b=a.getPoint(0),b.equals(this.currentPoint)||
|
|
|
-this.lineTo(b.x,b.y));this.curves.push(a);a=a.getPoint(1);this.currentPoint.copy(a);return this},copy:function(a){rc.prototype.copy.call(this,a);this.currentPoint.copy(a.currentPoint);return this},toJSON:function(){var a=rc.prototype.toJSON.call(this);a.currentPoint=this.currentPoint.toArray();return a},fromJSON:function(a){rc.prototype.fromJSON.call(this,a);this.currentPoint.fromArray(a.currentPoint);return this}});Qc.prototype=Object.assign(Object.create(Xb.prototype),{constructor:Qc,getPointsHoles:function(a){for(var b=
|
|
|
+this.lineTo(b.x,b.y));this.curves.push(a);a=a.getPoint(1);this.currentPoint.copy(a);return this},copy:function(a){qc.prototype.copy.call(this,a);this.currentPoint.copy(a.currentPoint);return this},toJSON:function(){var a=qc.prototype.toJSON.call(this);a.currentPoint=this.currentPoint.toArray();return a},fromJSON:function(a){qc.prototype.fromJSON.call(this,a);this.currentPoint.fromArray(a.currentPoint);return this}});Qc.prototype=Object.assign(Object.create(Xb.prototype),{constructor:Qc,getPointsHoles:function(a){for(var b=
|
|
|
[],d=0,e=this.holes.length;d<e;d++)b[d]=this.holes[d].getPoints(a);return b},extractPoints:function(a){return{shape:this.getPoints(a),holes:this.getPointsHoles(a)}},copy:function(a){Xb.prototype.copy.call(this,a);this.holes=[];for(var b=0,d=a.holes.length;b<d;b++)this.holes.push(a.holes[b].clone());return this},toJSON:function(){var a=Xb.prototype.toJSON.call(this);a.uuid=this.uuid;a.holes=[];for(var b=0,d=this.holes.length;b<d;b++)a.holes.push(this.holes[b].toJSON());return a},fromJSON:function(a){Xb.prototype.fromJSON.call(this,
|
|
|
a);this.uuid=a.uuid;this.holes=[];for(var b=0,d=a.holes.length;b<d;b++){var e=a.holes[b];this.holes.push((new Xb).fromJSON(e))}return this}});Sa.prototype=Object.assign(Object.create(ha.prototype),{constructor:Sa,isLight:!0,copy:function(a){ha.prototype.copy.call(this,a);this.color.copy(a.color);this.intensity=a.intensity;return this},toJSON:function(a){a=ha.prototype.toJSON.call(this,a);a.object.color=this.color.getHex();a.object.intensity=this.intensity;void 0!==this.groundColor&&(a.object.groundColor=
|
|
|
this.groundColor.getHex());void 0!==this.distance&&(a.object.distance=this.distance);void 0!==this.angle&&(a.object.angle=this.angle);void 0!==this.decay&&(a.object.decay=this.decay);void 0!==this.penumbra&&(a.object.penumbra=this.penumbra);void 0!==this.shadow&&(a.object.shadow=this.shadow.toJSON());return a}});ng.prototype=Object.assign(Object.create(Sa.prototype),{constructor:ng,isHemisphereLight:!0,copy:function(a){Sa.prototype.copy.call(this,a);this.groundColor.copy(a.groundColor);return this}});
|
|
|
-Object.assign(gc.prototype,{_projScreenMatrix:new da,_lightPositionWorld:new w,_lookTarget:new w,getViewportCount:function(){return this._viewportCount},getFrustum:function(){return this._frustum},updateMatrices:function(a){var b=this.camera,d=this.matrix,e=this._projScreenMatrix,f=this._lookTarget,g=this._lightPositionWorld;g.setFromMatrixPosition(a.matrixWorld);b.position.copy(g);f.setFromMatrixPosition(a.target.matrixWorld);b.lookAt(f);b.updateMatrixWorld();e.multiplyMatrices(b.projectionMatrix,
|
|
|
+Object.assign(rc.prototype,{_projScreenMatrix:new da,_lightPositionWorld:new w,_lookTarget:new w,getViewportCount:function(){return this._viewportCount},getFrustum:function(){return this._frustum},updateMatrices:function(a){var b=this.camera,d=this.matrix,e=this._projScreenMatrix,f=this._lookTarget,g=this._lightPositionWorld;g.setFromMatrixPosition(a.matrixWorld);b.position.copy(g);f.setFromMatrixPosition(a.target.matrixWorld);b.lookAt(f);b.updateMatrixWorld();e.multiplyMatrices(b.projectionMatrix,
|
|
|
b.matrixWorldInverse);this._frustum.setFromProjectionMatrix(e);d.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1);d.multiply(b.projectionMatrix);d.multiply(b.matrixWorldInverse)},getViewport:function(a){return this._viewports[a]},getFrameExtents:function(){return this._frameExtents},copy:function(a){this.camera=a.camera.clone();this.bias=a.bias;this.radius=a.radius;this.mapSize.copy(a.mapSize);return this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var a={};0!==this.bias&&
|
|
|
-(a.bias=this.bias);0!==this.normalBias&&(a.normalBias=this.normalBias);1!==this.radius&&(a.radius=this.radius);if(512!==this.mapSize.x||512!==this.mapSize.y)a.mapSize=this.mapSize.toArray();a.camera=this.camera.toJSON(!1).object;delete a.camera.matrix;return a}});Eh.prototype=Object.assign(Object.create(gc.prototype),{constructor:Eh,isSpotLightShadow:!0,updateMatrices:function(a){var b=this.camera,d=2*xa.RAD2DEG*a.angle*this.focus,e=this.mapSize.width/this.mapSize.height,f=a.distance||b.far;if(d!==
|
|
|
-b.fov||e!==b.aspect||f!==b.far)b.fov=d,b.aspect=e,b.far=f,b.updateProjectionMatrix();gc.prototype.updateMatrices.call(this,a)}});og.prototype=Object.assign(Object.create(Sa.prototype),{constructor:og,isSpotLight:!0,copy:function(a){Sa.prototype.copy.call(this,a);this.distance=a.distance;this.angle=a.angle;this.penumbra=a.penumbra;this.decay=a.decay;this.target=a.target.clone();this.shadow=a.shadow.clone();return this}});Fh.prototype=Object.assign(Object.create(gc.prototype),{constructor:Fh,isPointLightShadow:!0,
|
|
|
+(a.bias=this.bias);0!==this.normalBias&&(a.normalBias=this.normalBias);1!==this.radius&&(a.radius=this.radius);if(512!==this.mapSize.x||512!==this.mapSize.y)a.mapSize=this.mapSize.toArray();a.camera=this.camera.toJSON(!1).object;delete a.camera.matrix;return a}});Eh.prototype=Object.assign(Object.create(rc.prototype),{constructor:Eh,isSpotLightShadow:!0,updateMatrices:function(a){var b=this.camera,d=2*xa.RAD2DEG*a.angle*this.focus,e=this.mapSize.width/this.mapSize.height,f=a.distance||b.far;if(d!==
|
|
|
+b.fov||e!==b.aspect||f!==b.far)b.fov=d,b.aspect=e,b.far=f,b.updateProjectionMatrix();rc.prototype.updateMatrices.call(this,a)}});og.prototype=Object.assign(Object.create(Sa.prototype),{constructor:og,isSpotLight:!0,copy:function(a){Sa.prototype.copy.call(this,a);this.distance=a.distance;this.angle=a.angle;this.penumbra=a.penumbra;this.decay=a.decay;this.target=a.target.clone();this.shadow=a.shadow.clone();return this}});Fh.prototype=Object.assign(Object.create(rc.prototype),{constructor:Fh,isPointLightShadow:!0,
|
|
|
updateMatrices:function(a,b){void 0===b&&(b=0);var d=this.camera,e=this.matrix,f=this._lightPositionWorld,g=this._lookTarget,h=this._projScreenMatrix;f.setFromMatrixPosition(a.matrixWorld);d.position.copy(f);g.copy(d.position);g.add(this._cubeDirections[b]);d.up.copy(this._cubeUps[b]);d.lookAt(g);d.updateMatrixWorld();e.makeTranslation(-f.x,-f.y,-f.z);h.multiplyMatrices(d.projectionMatrix,d.matrixWorldInverse);this._frustum.setFromProjectionMatrix(h)}});pg.prototype=Object.assign(Object.create(Sa.prototype),
|
|
|
{constructor:pg,isPointLight:!0,copy:function(a){Sa.prototype.copy.call(this,a);this.distance=a.distance;this.decay=a.decay;this.shadow=a.shadow.clone();return this}});ie.prototype=Object.assign(Object.create(bc.prototype),{constructor:ie,isOrthographicCamera:!0,copy:function(a,b){bc.prototype.copy.call(this,a,b);this.left=a.left;this.right=a.right;this.top=a.top;this.bottom=a.bottom;this.near=a.near;this.far=a.far;this.zoom=a.zoom;this.view=null===a.view?null:Object.assign({},a.view);return this},
|
|
|
setViewOffset:function(a,b,d,e,f,g){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1});this.view.enabled=!0;this.view.fullWidth=a;this.view.fullHeight=b;this.view.offsetX=d;this.view.offsetY=e;this.view.width=f;this.view.height=g;this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1);this.updateProjectionMatrix()},updateProjectionMatrix:function(){var a=(this.right-this.left)/(2*this.zoom),b=(this.top-
|
|
|
this.bottom)/(2*this.zoom),d=(this.right+this.left)/2,e=(this.top+this.bottom)/2,f=d-a;d+=a;a=e+b;b=e-b;null!==this.view&&this.view.enabled&&(e=(this.right-this.left)/this.view.fullWidth/this.zoom,b=(this.top-this.bottom)/this.view.fullHeight/this.zoom,f+=e*this.view.offsetX,d=f+e*this.view.width,a-=b*this.view.offsetY,b=a-b*this.view.height);this.projectionMatrix.makeOrthographic(f,d,a,b,this.near,this.far);this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(a){a=ha.prototype.toJSON.call(this,
|
|
|
-a);a.object.zoom=this.zoom;a.object.left=this.left;a.object.right=this.right;a.object.top=this.top;a.object.bottom=this.bottom;a.object.near=this.near;a.object.far=this.far;null!==this.view&&(a.object.view=Object.assign({},this.view));return a}});Gh.prototype=Object.assign(Object.create(gc.prototype),{constructor:Gh,isDirectionalLightShadow:!0,updateMatrices:function(a){gc.prototype.updateMatrices.call(this,a)}});qg.prototype=Object.assign(Object.create(Sa.prototype),{constructor:qg,isDirectionalLight:!0,
|
|
|
+a);a.object.zoom=this.zoom;a.object.left=this.left;a.object.right=this.right;a.object.top=this.top;a.object.bottom=this.bottom;a.object.near=this.near;a.object.far=this.far;null!==this.view&&(a.object.view=Object.assign({},this.view));return a}});Gh.prototype=Object.assign(Object.create(rc.prototype),{constructor:Gh,isDirectionalLightShadow:!0,updateMatrices:function(a){rc.prototype.updateMatrices.call(this,a)}});qg.prototype=Object.assign(Object.create(Sa.prototype),{constructor:qg,isDirectionalLight:!0,
|
|
|
copy:function(a){Sa.prototype.copy.call(this,a);this.target=a.target.clone();this.shadow=a.shadow.clone();return this}});rg.prototype=Object.assign(Object.create(Sa.prototype),{constructor:rg,isAmbientLight:!0});sg.prototype=Object.assign(Object.create(Sa.prototype),{constructor:sg,isRectAreaLight:!0,copy:function(a){Sa.prototype.copy.call(this,a);this.width=a.width;this.height=a.height;return this},toJSON:function(a){a=Sa.prototype.toJSON.call(this,a);a.object.width=this.width;a.object.height=this.height;
|
|
|
return a}});var pb=function(){Object.defineProperty(this,"isSphericalHarmonics3",{value:!0});this.coefficients=[];for(var a=0;9>a;a++)this.coefficients.push(new w)};pb.prototype.set=function(a){for(var b=0;9>b;b++)this.coefficients[b].copy(a[b]);return this};pb.prototype.zero=function(){for(var a=0;9>a;a++)this.coefficients[a].set(0,0,0);return this};pb.prototype.getAt=function(a,b){var d=a.x,e=a.y;a=a.z;var f=this.coefficients;b.copy(f[0]).multiplyScalar(.282095);b.addScaledVector(f[1],.488603*e);
|
|
|
b.addScaledVector(f[2],.488603*a);b.addScaledVector(f[3],.488603*d);b.addScaledVector(f[4],1.092548*d*e);b.addScaledVector(f[5],1.092548*e*a);b.addScaledVector(f[6],.315392*(3*a*a-1));b.addScaledVector(f[7],1.092548*d*a);b.addScaledVector(f[8],.546274*(d*d-e*e));return b};pb.prototype.getIrradianceAt=function(a,b){var d=a.x,e=a.y;a=a.z;var f=this.coefficients;b.copy(f[0]).multiplyScalar(.886227);b.addScaledVector(f[1],1.023328*e);b.addScaledVector(f[2],1.023328*a);b.addScaledVector(f[3],1.023328*
|
|
@@ -879,7 +879,7 @@ k.tubularSegments,k.radius,k.radialSegments,k.closed);break;case "LatheGeometry"
|
|
|
h.isBufferGeometry&&void 0!==k.userData&&(h.userData=k.userData);d[k.uuid]=h}return d};Bb.prototype.parseMaterials=function(a,b){var d={},e={};if(void 0!==a){var f=new tg;f.setTextures(b);b=0;for(var g=a.length;b<g;b++){var h=a[b];if("MultiMaterial"===h.type){for(var k=[],l=0;l<h.materials.length;l++){var m=h.materials[l];void 0===d[m.uuid]&&(d[m.uuid]=f.parse(m));k.push(d[m.uuid])}e[h.uuid]=k}else void 0===d[h.uuid]&&(d[h.uuid]=f.parse(h)),e[h.uuid]=d[h.uuid]}}return e};Bb.prototype.parseAnimations=
|
|
|
function(a){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=Nb.parse(e);void 0!==e.uuid&&(f.uuid=e.uuid);b.push(f)}return b};Bb.prototype.parseImages=function(a,b){function d(t){e.manager.itemStart(t);return g.load(t,function(){e.manager.itemEnd(t)},void 0,function(){e.manager.itemError(t);e.manager.itemEnd(t)})}var e=this,f={};if(void 0!==a&&0<a.length){b=new Ah(b);var g=new ge(b);g.setCrossOrigin(this.crossOrigin);b=0;for(var h=a.length;b<h;b++){var k=a[b],l=k.url;if(Array.isArray(l)){f[k.uuid]=[];
|
|
|
for(var m=0,n=l.length;m<n;m++){var p=l[m];p=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(p)?p:e.resourcePath+p;f[k.uuid].push(d(p))}}else l=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(k.url)?k.url:e.resourcePath+k.url,f[k.uuid]=d(l)}}return f};Bb.prototype.parseTextures=function(a,b){function d(l,m){if("number"===typeof l)return l;console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",l);return m[l]}var e={};if(void 0!==a)for(var f=0,g=a.length;f<g;f++){var h=a[f];void 0===h.image&&console.warn('THREE.ObjectLoader: No "image" specified for',
|
|
|
-h.uuid);void 0===b[h.image]&&console.warn("THREE.ObjectLoader: Undefined image",h.image);var k=void 0;k=Array.isArray(b[h.image])?new lc(b[h.image]):new Oa(b[h.image]);k.needsUpdate=!0;k.uuid=h.uuid;void 0!==h.name&&(k.name=h.name);void 0!==h.mapping&&(k.mapping=d(h.mapping,Yl));void 0!==h.offset&&k.offset.fromArray(h.offset);void 0!==h.repeat&&k.repeat.fromArray(h.repeat);void 0!==h.center&&k.center.fromArray(h.center);void 0!==h.rotation&&(k.rotation=h.rotation);void 0!==h.wrap&&(k.wrapS=d(h.wrap[0],
|
|
|
+h.uuid);void 0===b[h.image]&&console.warn("THREE.ObjectLoader: Undefined image",h.image);var k=void 0;k=Array.isArray(b[h.image])?new kc(b[h.image]):new Oa(b[h.image]);k.needsUpdate=!0;k.uuid=h.uuid;void 0!==h.name&&(k.name=h.name);void 0!==h.mapping&&(k.mapping=d(h.mapping,Yl));void 0!==h.offset&&k.offset.fromArray(h.offset);void 0!==h.repeat&&k.repeat.fromArray(h.repeat);void 0!==h.center&&k.center.fromArray(h.center);void 0!==h.rotation&&(k.rotation=h.rotation);void 0!==h.wrap&&(k.wrapS=d(h.wrap[0],
|
|
|
Pj),k.wrapT=d(h.wrap[1],Pj));void 0!==h.format&&(k.format=h.format);void 0!==h.type&&(k.type=h.type);void 0!==h.encoding&&(k.encoding=h.encoding);void 0!==h.minFilter&&(k.minFilter=d(h.minFilter,Qj));void 0!==h.magFilter&&(k.magFilter=d(h.magFilter,Qj));void 0!==h.anisotropy&&(k.anisotropy=h.anisotropy);void 0!==h.flipY&&(k.flipY=h.flipY);void 0!==h.premultiplyAlpha&&(k.premultiplyAlpha=h.premultiplyAlpha);void 0!==h.unpackAlignment&&(k.unpackAlignment=h.unpackAlignment);e[h.uuid]=k}return e};Bb.prototype.parseObject=
|
|
|
function(a,b,d){function e(m){void 0===b[m]&&console.warn("THREE.ObjectLoader: Undefined geometry",m);return b[m]}function f(m){if(void 0!==m){if(Array.isArray(m)){for(var n=[],p=0,t=m.length;p<t;p++){var q=m[p];void 0===d[q]&&console.warn("THREE.ObjectLoader: Undefined material",q);n.push(d[q])}return n}void 0===d[m]&&console.warn("THREE.ObjectLoader: Undefined material",m);return d[m]}}switch(a.type){case "Scene":var g=new Kc;void 0!==a.background&&Number.isInteger(a.background)&&(g.background=
|
|
|
new S(a.background));void 0!==a.fog&&("Fog"===a.fog.type?g.fog=new If(a.fog.color,a.fog.near,a.fog.far):"FogExp2"===a.fog.type&&(g.fog=new Hf(a.fog.color,a.fog.density)));break;case "PerspectiveCamera":g=new eb(a.fov,a.aspect,a.near,a.far);void 0!==a.focus&&(g.focus=a.focus);void 0!==a.zoom&&(g.zoom=a.zoom);void 0!==a.filmGauge&&(g.filmGauge=a.filmGauge);void 0!==a.filmOffset&&(g.filmOffset=a.filmOffset);void 0!==a.view&&(g.view=Object.assign({},a.view));break;case "OrthographicCamera":g=new ie(a.left,
|
|
@@ -892,7 +892,7 @@ b,d));if("LOD"===a.type)for(void 0!==a.autoUpdate&&(g.autoUpdate=a.autoUpdate),a
|
|
|
CubeUVReflectionMapping:306,CubeUVRefractionMapping:307},Pj={RepeatWrapping:1E3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002},Qj={NearestFilter:1003,NearestMipmapNearestFilter:1004,NearestMipmapLinearFilter:1005,LinearFilter:1006,LinearMipmapNearestFilter:1007,LinearMipmapLinearFilter:1008};Hh.prototype=Object.assign(Object.create(Ma.prototype),{constructor:Hh,isImageBitmapLoader:!0,setOptions:function(a){this.options=a;return this},load:function(a,b,d,e){void 0===a&&(a="");void 0!==this.path&&
|
|
|
(a=this.path+a);a=this.manager.resolveURL(a);var f=this,g=wd.get(a);if(void 0!==g)return f.manager.itemStart(a),setTimeout(function(){b&&b(g);f.manager.itemEnd(a)},0),g;fetch(a).then(function(h){return h.blob()}).then(function(h){return createImageBitmap(h,f.options)}).then(function(h){wd.add(a,h);b&&b(h);f.manager.itemEnd(a)}).catch(function(h){e&&e(h);f.manager.itemError(a);f.manager.itemEnd(a)});f.manager.itemStart(a)}});Object.assign(Ih.prototype,{moveTo:function(a,b){this.currentPath=new Xb;
|
|
|
this.subPaths.push(this.currentPath);this.currentPath.moveTo(a,b);return this},lineTo:function(a,b){this.currentPath.lineTo(a,b);return this},quadraticCurveTo:function(a,b,d,e){this.currentPath.quadraticCurveTo(a,b,d,e);return this},bezierCurveTo:function(a,b,d,e,f,g){this.currentPath.bezierCurveTo(a,b,d,e,f,g);return this},splineThru:function(a){this.currentPath.splineThru(a);return this},toShapes:function(a,b){function d(A){for(var B=[],D=0,G=A.length;D<G;D++){var I=A[D],E=new Qc;E.curves=I.curves;
|
|
|
-B.push(E)}return B}function e(A,B){for(var D=B.length,G=!1,I=D-1,E=0;E<D;I=E++){var H=B[I],M=B[E],F=M.x-H.x,K=M.y-H.y;if(Math.abs(K)>Number.EPSILON){if(0>K&&(H=B[E],F=-F,M=B[I],K=-K),!(A.y<H.y||A.y>M.y))if(A.y===H.y){if(A.x===H.x)return!0}else{I=K*(A.x-H.x)-F*(A.y-H.y);if(0===I)return!0;0>I||(G=!G)}}else if(A.y===H.y&&(M.x<=A.x&&A.x<=H.x||H.x<=A.x&&A.x<=M.x))return!0}return G}var f=oc.isClockWise,g=this.subPaths;if(0===g.length)return[];if(!0===b)return d(g);b=[];if(1===g.length){var h=g[0];var k=
|
|
|
+B.push(E)}return B}function e(A,B){for(var D=B.length,G=!1,I=D-1,E=0;E<D;I=E++){var H=B[I],M=B[E],F=M.x-H.x,K=M.y-H.y;if(Math.abs(K)>Number.EPSILON){if(0>K&&(H=B[E],F=-F,M=B[I],K=-K),!(A.y<H.y||A.y>M.y))if(A.y===H.y){if(A.x===H.x)return!0}else{I=K*(A.x-H.x)-F*(A.y-H.y);if(0===I)return!0;0>I||(G=!G)}}else if(A.y===H.y&&(M.x<=A.x&&A.x<=H.x||H.x<=A.x&&A.x<=M.x))return!0}return G}var f=nc.isClockWise,g=this.subPaths;if(0===g.length)return[];if(!0===b)return d(g);b=[];if(1===g.length){var h=g[0];var k=
|
|
|
new Qc;k.curves=h.curves;b.push(k);return b}var l=!f(g[0].getPoints());l=a?!l:l;k=[];var m=[],n=[],p=0;m[p]=void 0;n[p]=[];for(var t=0,q=g.length;t<q;t++){h=g[t];var v=h.getPoints();var u=f(v);(u=a?!u:u)?(!l&&m[p]&&p++,m[p]={s:new Qc,p:v},m[p].s.curves=h.curves,l&&p++,n[p]=[]):n[p].push({h:h,p:v[0]})}if(!m[0])return d(g);if(1<m.length){a=!1;f=[];g=0;for(h=m.length;g<h;g++)k[g]=[];g=0;for(h=m.length;g<h;g++)for(u=n[g],l=0;l<u.length;l++){p=u[l];v=!0;for(t=0;t<m.length;t++)e(p.p,m[t].p)&&(g!==t&&f.push({froms:g,
|
|
|
tos:t,hole:l}),v?(v=!1,k[t].push(p)):a=!0);v&&k[g].push(p)}0<f.length&&(a||(n=k))}f=0;for(g=m.length;f<g;f++)for(k=m[f].s,b.push(k),a=n[f],h=0,u=a.length;h<u;h++)k.holes.push(a[h].h);return b}});Object.assign(Jh.prototype,{isFont:!0,generateShapes:function(a,b){void 0===b&&(b=100);var d=[],e=b;b=this.data;var f=Array.from?Array.from(a):String(a).split("");e/=b.resolution;var g=(b.boundingBox.yMax-b.boundingBox.yMin+b.underlineThickness)*e;a=[];for(var h=0,k=0,l=0;l<f.length;l++){var m=f[l];if("\n"===
|
|
|
m)h=0,k-=g;else{var n=m;m=e;var p=h,t=k,q=b,v=q.glyphs[n]||q.glyphs["?"];if(v){n=new Ih;if(v.o){q=v._cachedOutline||(v._cachedOutline=v.o.split(" "));for(var u=0,A=q.length;u<A;)switch(q[u++]){case "m":var B=q[u++]*m+p;var D=q[u++]*m+t;n.moveTo(B,D);break;case "l":B=q[u++]*m+p;D=q[u++]*m+t;n.lineTo(B,D);break;case "q":var G=q[u++]*m+p;var I=q[u++]*m+t;var E=q[u++]*m+p;var H=q[u++]*m+t;n.quadraticCurveTo(E,H,G,I);break;case "b":G=q[u++]*m+p,I=q[u++]*m+t,E=q[u++]*m+p,H=q[u++]*m+t,B=q[u++]*m+p,D=q[u++]*
|
|
@@ -987,19 +987,19 @@ Rc;Rc.prototype.update=function(a){void 0!==a&&console.warn("THREE.BoxHelper: .u
|
|
|
Rc.prototype.setFromObject=function(a){this.object=a;this.update();return this};Rc.prototype.copy=function(a){Za.prototype.copy.call(this,a);this.object=a.object;return this};xf.prototype=Object.create(Za.prototype);xf.prototype.constructor=xf;xf.prototype.updateMatrixWorld=function(a){var b=this.box;b.isEmpty()||(b.getCenter(this.position),b.getSize(this.scale),this.scale.multiplyScalar(.5),Za.prototype.updateMatrixWorld.call(this,a))};yf.prototype=Object.create(yb.prototype);yf.prototype.constructor=
|
|
|
yf;yf.prototype.updateMatrixWorld=function(a){var b=-this.plane.constant;1E-8>Math.abs(b)&&(b=1E-8);this.scale.set(.5*this.size,.5*this.size,b);this.children[0].material.side=0>b?1:0;this.lookAt(this.plane.normal);yb.prototype.updateMatrixWorld.call(this,a)};var ck=new w,zg,Uh;Sc.prototype=Object.create(ha.prototype);Sc.prototype.constructor=Sc;Sc.prototype.setDirection=function(a){.99999<a.y?this.quaternion.set(0,0,0,1):-.99999>a.y?this.quaternion.set(1,0,0,0):(ck.set(a.z,0,-a.x).normalize(),this.quaternion.setFromAxisAngle(ck,
|
|
|
Math.acos(a.y)))};Sc.prototype.setLength=function(a,b,d){void 0===b&&(b=.2*a);void 0===d&&(d=.2*b);this.line.scale.set(1,Math.max(1E-4,a-b),1);this.line.updateMatrix();this.cone.scale.set(d,b,d);this.cone.position.y=a;this.cone.updateMatrix()};Sc.prototype.setColor=function(a){this.line.material.color.set(a);this.cone.material.color.set(a)};Sc.prototype.copy=function(a){ha.prototype.copy.call(this,a,!1);this.line.copy(a.line);this.cone.copy(a.cone);return this};zf.prototype=Object.create(Za.prototype);
|
|
|
-zf.prototype.constructor=zf;var hc=Math.pow(2,8),dk=[.125,.215,.35,.446,.526,.582],ek=5+dk.length,ic={3E3:0,3001:1,3002:2,3004:3,3005:4,3006:5,3007:6},si=new ie,ti=function(){for(var a=[],b=[],d=[],e=8,f=0;f<ek;f++){var g=Math.pow(2,e);b.push(g);var h=1/g;4<f?h=dk[f-8+4-1]:0==f&&(h=0);d.push(h);h=1/(g-1);g=-h/2;h=1+h/2;var k=[g,g,h,g,h,h,g,g,h,h,g,h];g=new Float32Array(108);h=new Float32Array(72);for(var l=new Float32Array(36),m=0;6>m;m++){var n=m%3*2/3-1,p=2<m?0:-1;g.set([n,p,0,n+2/3,p,0,n+2/3,p+
|
|
|
+zf.prototype.constructor=zf;var gc=Math.pow(2,8),dk=[.125,.215,.35,.446,.526,.582],ek=5+dk.length,hc={3E3:0,3001:1,3002:2,3004:3,3005:4,3006:5,3007:6},si=new ie,ti=function(){for(var a=[],b=[],d=[],e=8,f=0;f<ek;f++){var g=Math.pow(2,e);b.push(g);var h=1/g;4<f?h=dk[f-8+4-1]:0==f&&(h=0);d.push(h);h=1/(g-1);g=-h/2;h=1+h/2;var k=[g,g,h,g,h,h,g,g,h,h,g,h];g=new Float32Array(108);h=new Float32Array(72);for(var l=new Float32Array(36),m=0;6>m;m++){var n=m%3*2/3-1,p=2<m?0:-1;g.set([n,p,0,n+2/3,p,0,n+2/3,p+
|
|
|
1,0,n,p,0,n+2/3,p+1,0,n,p+1,0],18*m);h.set(k,12*m);l.set([m,m,m,m,m,m],6*m)}k=new ka;k.setAttribute("position",new pa(g,3));k.setAttribute("uv",new pa(h,2));k.setAttribute("faceIndex",new pa(l,1));a.push(k);4<e&&e--}return{_lodPlanes:a,_sizeLods:b,_sigmas:d}}(),Of=ti._lodPlanes,fk=ti._sizeLods,ch=ti._sigmas,ui=null,Cd=(1+Math.sqrt(5))/2,Ce=1/Cd,gk=[new w(1,1,1),new w(-1,1,1),new w(1,1,-1),new w(-1,1,-1),new w(0,Cd,Ce),new w(0,Cd,-Ce),new w(Ce,0,Cd),new w(-Ce,0,Cd),new w(Cd,Ce,0),new w(-Cd,Ce,0)],
|
|
|
-rb=function(a){this._renderer=a;this._pingPongRenderTarget=null;a=new Float32Array(20);var b=new w(0,1,0);this._blurMaterial=new qc({name:"SphericalGaussianBlur",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:ic[3E3]},outputEncoding:{value:ic[3E3]}},vertexShader:Vh(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t"+
|
|
|
+rb=function(a){this._renderer=a;this._pingPongRenderTarget=null;a=new Float32Array(20);var b=new w(0,1,0);this._blurMaterial=new pc({name:"SphericalGaussianBlur",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:hc[3E3]},outputEncoding:{value:hc[3E3]}},vertexShader:Vh(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t"+
|
|
|
Wh()+"\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include <cube_uv_reflection_fragment>\n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t\tgl_FragColor = linearToOutputTexel( gl_FragColor );\n\n\t\t\t}\n\t\t",
|
|
|
blending:0,depthTest:!1,depthWrite:!1});this._cubemapShader=this._equirectShader=null;this._compileMaterial(this._blurMaterial)};rb.prototype.fromScene=function(a,b,d,e){void 0===b&&(b=0);void 0===d&&(d=.1);void 0===e&&(e=100);ui=this._renderer.getRenderTarget();var f=this._allocateTargets();this._sceneToCubeUV(a,d,e,f);0<b&&this._blur(f,0,0,b);this._applyPMREM(f);this._cleanup(f);return f};rb.prototype.fromEquirectangular=function(a){return this._fromTexture(a)};rb.prototype.fromCubemap=function(a){return this._fromTexture(a)};
|
|
|
rb.prototype.compileCubemapShader=function(){null===this._cubemapShader&&(this._cubemapShader=sj(),this._compileMaterial(this._cubemapShader))};rb.prototype.compileEquirectangularShader=function(){null===this._equirectShader&&(this._equirectShader=rj(),this._compileMaterial(this._equirectShader))};rb.prototype.dispose=function(){this._blurMaterial.dispose();null!==this._cubemapShader&&this._cubemapShader.dispose();null!==this._equirectShader&&this._equirectShader.dispose();for(var a=0;a<Of.length;a++)Of[a].dispose()};
|
|
|
rb.prototype._cleanup=function(a){this._pingPongRenderTarget.dispose();this._renderer.setRenderTarget(ui);a.scissorTest=!1;Ag(a,0,0,a.width,a.height)};rb.prototype._fromTexture=function(a){ui=this._renderer.getRenderTarget();var b=this._allocateTargets(a);this._textureToCubeUV(a,b);this._applyPMREM(b);this._cleanup(b);return b};rb.prototype._allocateTargets=function(a){var b=void 0===a||1009!==a.type?!1:3E3===a.encoding||3001===a.encoding||3007===a.encoding;b={magFilter:1003,minFilter:1003,generateMipmaps:!1,
|
|
|
type:1009,format:1023,encoding:b?a.encoding:3002,depthBuffer:!1};var d=qj(b);d.depthBuffer=a?!1:!0;this._pingPongRenderTarget=qj(b);return d};rb.prototype._compileMaterial=function(a){a=new Qa(Of[0],a);this._renderer.compile(a,si)};rb.prototype._sceneToCubeUV=function(a,b,d,e){b=new eb(90,1,b,d);d=[1,-1,1,1,1,1];var f=[1,1,1,-1,-1,-1],g=this._renderer,h=g.outputEncoding,k=g.toneMapping,l=g.getClearColor(),m=g.getClearAlpha();g.toneMapping=0;g.outputEncoding=3E3;var n=a.background;if(n&&n.isColor){n.convertSRGBToLinear();
|
|
|
-var p=Math.min(Math.max(Math.ceil(Math.log2(Math.max(n.r,n.g,n.b))),-128),127);n=n.multiplyScalar(Math.pow(2,-p));g.setClearColor(n,(p+128)/255);a.background=null}for(n=0;6>n;n++)p=n%3,0==p?(b.up.set(0,d[n],0),b.lookAt(f[n],0,0)):1==p?(b.up.set(0,0,d[n]),b.lookAt(0,f[n],0)):(b.up.set(0,d[n],0),b.lookAt(0,0,f[n])),Ag(e,p*hc,2<n?hc:0,hc,hc),g.setRenderTarget(e),g.render(a,b);g.toneMapping=k;g.outputEncoding=h;g.setClearColor(l,m)};rb.prototype._textureToCubeUV=function(a,b){var d=this._renderer;a.isCubeTexture?
|
|
|
-null==this._cubemapShader&&(this._cubemapShader=sj()):null==this._equirectShader&&(this._equirectShader=rj());var e=a.isCubeTexture?this._cubemapShader:this._equirectShader,f=new Qa(Of[0],e);e=e.uniforms;e.envMap.value=a;a.isCubeTexture||e.texelSize.value.set(1/a.image.width,1/a.image.height);e.inputEncoding.value=ic[a.encoding];e.outputEncoding.value=ic[b.texture.encoding];Ag(b,0,0,3*hc,2*hc);d.setRenderTarget(b);d.render(f,si)};rb.prototype._applyPMREM=function(a){var b=this._renderer,d=b.autoClear;
|
|
|
+var p=Math.min(Math.max(Math.ceil(Math.log2(Math.max(n.r,n.g,n.b))),-128),127);n=n.multiplyScalar(Math.pow(2,-p));g.setClearColor(n,(p+128)/255);a.background=null}for(n=0;6>n;n++)p=n%3,0==p?(b.up.set(0,d[n],0),b.lookAt(f[n],0,0)):1==p?(b.up.set(0,0,d[n]),b.lookAt(0,f[n],0)):(b.up.set(0,d[n],0),b.lookAt(0,0,f[n])),Ag(e,p*gc,2<n?gc:0,gc,gc),g.setRenderTarget(e),g.render(a,b);g.toneMapping=k;g.outputEncoding=h;g.setClearColor(l,m)};rb.prototype._textureToCubeUV=function(a,b){var d=this._renderer;a.isCubeTexture?
|
|
|
+null==this._cubemapShader&&(this._cubemapShader=sj()):null==this._equirectShader&&(this._equirectShader=rj());var e=a.isCubeTexture?this._cubemapShader:this._equirectShader,f=new Qa(Of[0],e);e=e.uniforms;e.envMap.value=a;a.isCubeTexture||e.texelSize.value.set(1/a.image.width,1/a.image.height);e.inputEncoding.value=hc[a.encoding];e.outputEncoding.value=hc[b.texture.encoding];Ag(b,0,0,3*gc,2*gc);d.setRenderTarget(b);d.render(f,si)};rb.prototype._applyPMREM=function(a){var b=this._renderer,d=b.autoClear;
|
|
|
b.autoClear=!1;for(var e=1;e<ek;e++)this._blur(a,e-1,e,Math.sqrt(ch[e]*ch[e]-ch[e-1]*ch[e-1]),gk[(e-1)%gk.length]);b.autoClear=d};rb.prototype._blur=function(a,b,d,e,f){var g=this._pingPongRenderTarget;this._halfBlur(a,g,b,d,e,"latitudinal",f);this._halfBlur(g,a,d,d,e,"longitudinal",f)};rb.prototype._halfBlur=function(a,b,d,e,f,g,h){var k=this._renderer,l=this._blurMaterial;"latitudinal"!==g&&"longitudinal"!==g&&console.error("blur direction must be either latitudinal or longitudinal!");var m=new Qa(Of[e],
|
|
|
l);l=l.uniforms;var n=fk[d]-1;n=isFinite(f)?Math.PI/(2*n):2*Math.PI/39;var p=f/n,t=isFinite(f)?1+Math.floor(3*p):20;20<t&&console.warn("sigmaRadians, "+f+", is too large and will clip, as it requested "+t+" samples when the maximum is set to 20");f=[];for(var q=0,v=0;20>v;++v){var u=v/p;u=Math.exp(-u*u/2);f.push(u);0==v?q+=u:v<t&&(q+=2*u)}for(p=0;p<f.length;p++)f[p]/=q;l.envMap.value=a.texture;l.samples.value=t;l.weights.value=f;l.latitudinal.value="latitudinal"===g;h&&(l.poleAxis.value=h);l.dTheta.value=
|
|
|
-n;l.mipInt.value=8-d;l.inputEncoding.value=ic[a.texture.encoding];l.outputEncoding.value=ic[a.texture.encoding];a=fk[e];Ag(b,3*Math.max(0,hc-2*a),(0===e?0:2*hc)+2*a*(4<e?e-8+4:0),3*a,2*a);k.setRenderTarget(b);k.render(m,si)};oa.create=function(a,b){console.log("THREE.Curve.create() has been deprecated");a.prototype=Object.create(oa.prototype);a.prototype.constructor=a;a.prototype.getPoint=b;return a};Object.assign(rc.prototype,{createPointsGeometry:function(a){console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");
|
|
|
+n;l.mipInt.value=8-d;l.inputEncoding.value=hc[a.texture.encoding];l.outputEncoding.value=hc[a.texture.encoding];a=fk[e];Ag(b,3*Math.max(0,gc-2*a),(0===e?0:2*gc)+2*a*(4<e?e-8+4:0),3*a,2*a);k.setRenderTarget(b);k.render(m,si)};oa.create=function(a,b){console.log("THREE.Curve.create() has been deprecated");a.prototype=Object.create(oa.prototype);a.prototype.constructor=a;a.prototype.getPoint=b;return a};Object.assign(qc.prototype,{createPointsGeometry:function(a){console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");
|
|
|
a=this.getPoints(a);return this.createGeometry(a)},createSpacedPointsGeometry:function(a){console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");a=this.getSpacedPoints(a);return this.createGeometry(a)},createGeometry:function(a){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var b=new sa,d=0,e=a.length;d<e;d++){var f=a[d];b.vertices.push(new w(f.x,
|
|
|
f.y,f.z||0))}return b}});Object.assign(Xb.prototype,{fromPoints:function(a){console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints().");return this.setFromPoints(a)}});tj.prototype=Object.create(ob.prototype);uj.prototype=Object.create(ob.prototype);Xh.prototype=Object.create(ob.prototype);Object.assign(Xh.prototype,{initFromArray:function(){console.error("THREE.Spline: .initFromArray() has been removed.")},getControlPointsArray:function(){console.error("THREE.Spline: .getControlPointsArray() has been removed.")},
|
|
|
reparametrizeByArcLength:function(){console.error("THREE.Spline: .reparametrizeByArcLength() has been removed.")}});vf.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")};le.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")};Object.assign(Ma.prototype,{extractUrlBase:function(a){console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead.");
|
|
@@ -1065,7 +1065,7 @@ var f=new kg;f.setCrossOrigin(this.crossOrigin);a=f.load(a,d,void 0,e);b&&(a.map
|
|
|
r.ACESFilmicToneMapping=4;r.AddEquation=100;r.AddOperation=2;r.AdditiveAnimationBlendMode=2501;r.AdditiveBlending=2;r.AlphaFormat=1021;r.AlwaysDepth=1;r.AlwaysStencilFunc=519;r.AmbientLight=rg;r.AmbientLightProbe=Mh;r.AnimationClip=Nb;r.AnimationLoader=Bh;r.AnimationMixer=Ph;r.AnimationObjectGroup=nj;r.AnimationUtils=Va;r.ArcCurve=he;r.ArrayCamera=Uf;r.ArrowHelper=Sc;r.Audio=Ja;r.AudioAnalyser=Xg;r.AudioContext=Nh;r.AudioListener=Yb;r.AudioLoader=wg;r.AxesHelper=zf;r.AxisHelper=function(a){console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper.");
|
|
|
return new zf(a)};r.BackSide=1;r.BasicDepthPacking=3200;r.BasicShadowMap=0;r.BinaryTextureLoader=function(a){console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader.");return new lg(a)};r.Bone=uh;r.BooleanKeyframeTrack=gg;r.BoundingBoxHelper=function(a,b){console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead.");return new Rc(a,b)};r.Box2=$a;r.Box3=za;r.Box3Helper=xf;r.BoxBufferGeometry=Cc;r.BoxGeometry=Gd;r.BoxHelper=Rc;r.BufferAttribute=
|
|
|
pa;r.BufferGeometry=ka;r.BufferGeometryLoader=vg;r.ByteType=1010;r.Cache=wd;r.Camera=bc;r.CameraHelper=wf;r.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been removed")};r.CanvasTexture=Ue;r.CatmullRomCurve3=ob;r.CineonToneMapping=3;r.CircleBufferGeometry=de;r.CircleGeometry=of;r.ClampToEdgeWrapping=1001;r.Clock=je;r.ClosedSplineCurve3=tj;r.Color=S;r.ColorKeyframeTrack=hg;r.CompressedTexture=Rd;r.CompressedTextureLoader=Ch;r.ConeBufferGeometry=nf;r.ConeGeometry=mf;r.CubeCamera=
|
|
|
-Id;r.CubeGeometry=Gd;r.CubeReflectionMapping=301;r.CubeRefractionMapping=302;r.CubeTexture=lc;r.CubeTextureLoader=kg;r.CubeUVReflectionMapping=306;r.CubeUVRefractionMapping=307;r.CubicBezierCurve=Tb;r.CubicBezierCurve3=ec;r.CubicInterpolant=eg;r.CullFaceBack=1;r.CullFaceFront=2;r.CullFaceFrontBack=3;r.CullFaceNone=0;r.Curve=oa;r.CurvePath=rc;r.CustomBlending=5;r.CustomToneMapping=5;r.CylinderBufferGeometry=pc;r.CylinderGeometry=md;r.Cylindrical=Be;r.DataTexture=cd;r.DataTexture2DArray=Jd;r.DataTexture3D=
|
|
|
+Id;r.CubeGeometry=Gd;r.CubeReflectionMapping=301;r.CubeRefractionMapping=302;r.CubeTexture=kc;r.CubeTextureLoader=kg;r.CubeUVReflectionMapping=306;r.CubeUVRefractionMapping=307;r.CubicBezierCurve=Tb;r.CubicBezierCurve3=ec;r.CubicInterpolant=eg;r.CullFaceBack=1;r.CullFaceFront=2;r.CullFaceFrontBack=3;r.CullFaceNone=0;r.Curve=oa;r.CurvePath=qc;r.CustomBlending=5;r.CustomToneMapping=5;r.CylinderBufferGeometry=oc;r.CylinderGeometry=md;r.Cylindrical=Be;r.DataTexture=cd;r.DataTexture2DArray=Jd;r.DataTexture3D=
|
|
|
Kd;r.DataTextureLoader=lg;r.DecrementStencilOp=7683;r.DecrementWrapStencilOp=34056;r.DefaultLoadingManager=jj;r.DepthFormat=1026;r.DepthStencilFormat=1027;r.DepthTexture=Ve;r.DirectionalLight=qg;r.DirectionalLightHelper=oe;r.DiscreteInterpolant=fg;r.DodecahedronBufferGeometry=Wd;r.DodecahedronGeometry=af;r.DoubleSide=2;r.DstAlphaFactor=206;r.DstColorFactor=208;r.DynamicBufferAttribute=function(a,b){console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead.");
|
|
|
return(new pa(a,b)).setUsage(35048)};r.DynamicCopyUsage=35050;r.DynamicDrawUsage=35048;r.DynamicReadUsage=35049;r.EdgesGeometry=ce;r.EdgesHelper=function(a,b){console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead.");return new Za(new ce(a.geometry),new Ya({color:void 0!==b?b:16777215}))};r.EllipseCurve=Jb;r.EqualDepth=4;r.EqualStencilFunc=514;r.EquirectangularReflectionMapping=303;r.EquirectangularRefractionMapping=304;r.Euler=hb;r.EventDispatcher=wb;r.ExtrudeBufferGeometry=
|
|
|
cc;r.ExtrudeGeometry=id;r.Face3=bd;r.Face4=function(a,b,d,e,f,g,h){console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead.");return new bd(a,b,d,f,g,h)};r.FaceColors=1;r.FileLoader=Ob;r.FlatShading=1;r.Float32Attribute=function(a,b){console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead.");return new ea(a,b)};r.Float32BufferAttribute=ea;r.Float64Attribute=function(a,b){console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead.");
|
|
@@ -1073,7 +1073,7 @@ return new Ie(a,b)};r.Float64BufferAttribute=Ie;r.FloatType=1015;r.Fog=If;r.FogE
|
|
|
d)},center:function(a){console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead.");return a.center()}};r.GreaterDepth=6;r.GreaterEqualDepth=5;r.GreaterEqualStencilFunc=518;r.GreaterStencilFunc=516;r.GridHelper=vf;r.Group=Hc;r.HalfFloatType=1016;r.HemisphereLight=ng;r.HemisphereLightHelper=ne;r.HemisphereLightProbe=Lh;r.IcosahedronBufferGeometry=Vd;r.IcosahedronGeometry=$e;r.ImageBitmapLoader=Hh;r.ImageLoader=ge;r.ImageUtils=Tc;r.ImmediateRenderObject=
|
|
|
uf;r.IncrementStencilOp=7682;r.IncrementWrapStencilOp=34055;r.InstancedBufferAttribute=ug;r.InstancedBufferGeometry=tf;r.InstancedInterleavedBuffer=Qh;r.InstancedMesh=$f;r.Int16Attribute=function(a,b){console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead.");return new Ge(a,b)};r.Int16BufferAttribute=Ge;r.Int32Attribute=function(a,b){console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead.");return new He(a,b)};r.Int32BufferAttribute=
|
|
|
He;r.Int8Attribute=function(a,b){console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead.");return new De(a,b)};r.Int8BufferAttribute=De;r.IntType=1013;r.InterleavedBuffer=Hb;r.InterleavedBufferAttribute=Lc;r.Interpolant=Ib;r.InterpolateDiscrete=2300;r.InterpolateLinear=2301;r.InterpolateSmooth=2302;r.InvertStencilOp=5386;r.JSONLoader=function(){console.error("THREE.JSONLoader has been removed.")};r.KeepStencilOp=7680;r.KeyframeTrack=lb;r.LOD=Te;r.LatheBufferGeometry=
|
|
|
-be;r.LatheGeometry=lf;r.Layers=ac;r.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")};r.LessDepth=2;r.LessEqualDepth=3;r.LessEqualStencilFunc=515;r.LessStencilFunc=513;r.Light=Sa;r.LightProbe=Pb;r.LightShadow=gc;r.Line=yb;r.Line3=Db;r.LineBasicMaterial=Ya;r.LineCurve=Ab;r.LineCurve3=Ub;r.LineDashedMaterial=sd;r.LineLoop=ag;r.LinePieces=1;r.LineSegments=Za;r.LineStrip=0;r.LinearEncoding=3E3;r.LinearFilter=1006;r.LinearInterpolant=pf;r.LinearMipMapLinearFilter=
|
|
|
+be;r.LatheGeometry=lf;r.Layers=ac;r.LensFlare=function(){console.error("THREE.LensFlare has been moved to /examples/jsm/objects/Lensflare.js")};r.LessDepth=2;r.LessEqualDepth=3;r.LessEqualStencilFunc=515;r.LessStencilFunc=513;r.Light=Sa;r.LightProbe=Pb;r.Line=yb;r.Line3=Db;r.LineBasicMaterial=Ya;r.LineCurve=Ab;r.LineCurve3=Ub;r.LineDashedMaterial=sd;r.LineLoop=ag;r.LinePieces=1;r.LineSegments=Za;r.LineStrip=0;r.LinearEncoding=3E3;r.LinearFilter=1006;r.LinearInterpolant=pf;r.LinearMipMapLinearFilter=
|
|
|
1008;r.LinearMipMapNearestFilter=1007;r.LinearMipmapLinearFilter=1008;r.LinearMipmapNearestFilter=1007;r.LinearToneMapping=1;r.Loader=Ma;r.LoaderUtils=qi;r.LoadingManager=Ah;r.LogLuvEncoding=3003;r.LoopOnce=2200;r.LoopPingPong=2202;r.LoopRepeat=2201;r.LuminanceAlphaFormat=1025;r.LuminanceFormat=1024;r.MOUSE={LEFT:0,MIDDLE:1,RIGHT:2,ROTATE:0,DOLLY:1,PAN:2};r.Material=ra;r.MaterialLoader=tg;r.Math=xa;r.MathUtils=xa;r.Matrix3=Da;r.Matrix4=da;r.MaxEquation=104;r.Mesh=Qa;r.MeshBasicMaterial=Lb;r.MeshDepthMaterial=
|
|
|
Fc;r.MeshDistanceMaterial=Gc;r.MeshFaceMaterial=function(a){console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead.");return a};r.MeshLambertMaterial=qd;r.MeshMatcapMaterial=rd;r.MeshNormalMaterial=pd;r.MeshPhongMaterial=Pc;r.MeshPhysicalMaterial=Oc;r.MeshStandardMaterial=dc;r.MeshToonMaterial=od;r.MinEquation=103;r.MirroredRepeatWrapping=1002;r.MixOperation=1;r.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};r.MultiplyBlending=4;r.MultiplyOperation=0;r.NearestFilter=1003;r.NearestMipMapLinearFilter=1005;r.NearestMipMapNearestFilter=1004;r.NearestMipmapLinearFilter=1005;r.NearestMipmapNearestFilter=1004;r.NeverDepth=0;r.NeverStencilFunc=512;r.NoBlending=0;r.NoColors=0;r.NoToneMapping=0;r.NormalAnimationBlendMode=2500;r.NormalBlending=1;r.NotEqualDepth=7;r.NotEqualStencilFunc=517;r.NumberKeyframeTrack=ee;r.Object3D=ha;r.ObjectLoader=
|
|
@@ -1082,9 +1082,9 @@ return new Sb(a)};r.ParticleSystem=function(a,b){console.warn("THREE.ParticleSys
|
|
|
r.PointCloudMaterial=function(a){console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial.");return new Sb(a)};r.PointLight=pg;r.PointLightHelper=me;r.Points=Qd;r.PointsMaterial=Sb;r.PolarGridHelper=xg;r.PolyhedronBufferGeometry=zb;r.PolyhedronGeometry=Xe;r.PositionalAudio=tb;r.PropertyBinding=qb;r.PropertyMixer=Oh;r.QuadraticBezierCurve=Vb;r.QuadraticBezierCurve3=fc;r.Quaternion=ua;r.QuaternionKeyframeTrack=qf;r.QuaternionLinearInterpolant=ig;r.REVISION="121dev";r.RGBADepthPacking=
|
|
|
3201;r.RGBAFormat=1023;r.RGBAIntegerFormat=1033;r.RGBA_ASTC_10x10_Format=37819;r.RGBA_ASTC_10x5_Format=37816;r.RGBA_ASTC_10x6_Format=37817;r.RGBA_ASTC_10x8_Format=37818;r.RGBA_ASTC_12x10_Format=37820;r.RGBA_ASTC_12x12_Format=37821;r.RGBA_ASTC_4x4_Format=37808;r.RGBA_ASTC_5x4_Format=37809;r.RGBA_ASTC_5x5_Format=37810;r.RGBA_ASTC_6x5_Format=37811;r.RGBA_ASTC_6x6_Format=37812;r.RGBA_ASTC_8x5_Format=37813;r.RGBA_ASTC_8x6_Format=37814;r.RGBA_ASTC_8x8_Format=37815;r.RGBA_BPTC_Format=36492;r.RGBA_ETC2_EAC_Format=
|
|
|
37496;r.RGBA_PVRTC_2BPPV1_Format=35843;r.RGBA_PVRTC_4BPPV1_Format=35842;r.RGBA_S3TC_DXT1_Format=33777;r.RGBA_S3TC_DXT3_Format=33778;r.RGBA_S3TC_DXT5_Format=33779;r.RGBDEncoding=3006;r.RGBEEncoding=3002;r.RGBEFormat=1023;r.RGBFormat=1022;r.RGBIntegerFormat=1032;r.RGBM16Encoding=3005;r.RGBM7Encoding=3004;r.RGB_ETC1_Format=36196;r.RGB_ETC2_Format=37492;r.RGB_PVRTC_2BPPV1_Format=35841;r.RGB_PVRTC_4BPPV1_Format=35840;r.RGB_S3TC_DXT1_Format=33776;r.RGFormat=1030;r.RGIntegerFormat=1031;r.RawShaderMaterial=
|
|
|
-qc;r.Ray=Ta;r.Raycaster=Sh;r.RectAreaLight=sg;r.RedFormat=1028;r.RedIntegerFormat=1029;r.ReinhardToneMapping=2;r.RepeatWrapping=1E3;r.ReplaceStencilOp=7681;r.ReverseSubtractEquation=102;r.RingBufferGeometry=ae;r.RingGeometry=kf;r.SRGB8_ALPHA8_ASTC_10x10_Format=37851;r.SRGB8_ALPHA8_ASTC_10x5_Format=37848;r.SRGB8_ALPHA8_ASTC_10x6_Format=37849;r.SRGB8_ALPHA8_ASTC_10x8_Format=37850;r.SRGB8_ALPHA8_ASTC_12x10_Format=37852;r.SRGB8_ALPHA8_ASTC_12x12_Format=37853;r.SRGB8_ALPHA8_ASTC_4x4_Format=37840;r.SRGB8_ALPHA8_ASTC_5x4_Format=
|
|
|
+pc;r.Ray=Ta;r.Raycaster=Sh;r.RectAreaLight=sg;r.RedFormat=1028;r.RedIntegerFormat=1029;r.ReinhardToneMapping=2;r.RepeatWrapping=1E3;r.ReplaceStencilOp=7681;r.ReverseSubtractEquation=102;r.RingBufferGeometry=ae;r.RingGeometry=kf;r.SRGB8_ALPHA8_ASTC_10x10_Format=37851;r.SRGB8_ALPHA8_ASTC_10x5_Format=37848;r.SRGB8_ALPHA8_ASTC_10x6_Format=37849;r.SRGB8_ALPHA8_ASTC_10x8_Format=37850;r.SRGB8_ALPHA8_ASTC_12x10_Format=37852;r.SRGB8_ALPHA8_ASTC_12x12_Format=37853;r.SRGB8_ALPHA8_ASTC_4x4_Format=37840;r.SRGB8_ALPHA8_ASTC_5x4_Format=
|
|
|
37841;r.SRGB8_ALPHA8_ASTC_5x5_Format=37842;r.SRGB8_ALPHA8_ASTC_6x5_Format=37843;r.SRGB8_ALPHA8_ASTC_6x6_Format=37844;r.SRGB8_ALPHA8_ASTC_8x5_Format=37845;r.SRGB8_ALPHA8_ASTC_8x6_Format=37846;r.SRGB8_ALPHA8_ASTC_8x8_Format=37847;r.Scene=Kc;r.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")}};
|
|
|
-r.ShaderChunk=Ba;r.ShaderLib=Qb;r.ShaderMaterial=sb;r.ShadowMaterial=nd;r.Shape=Qc;r.ShapeBufferGeometry=ld;r.ShapeGeometry=kd;r.ShapePath=Ih;r.ShapeUtils=oc;r.ShortType=1011;r.Skeleton=Zf;r.SkeletonHelper=le;r.SkinnedMesh=Yf;r.SmoothShading=2;r.Sphere=Wa;r.SphereBufferGeometry=jd;r.SphereGeometry=jf;r.Spherical=Bd;r.SphericalHarmonics3=pb;r.Spline=Xh;r.SplineCurve=Wb;r.SplineCurve3=uj;r.SpotLight=og;r.SpotLightHelper=ke;r.Sprite=Re;r.SpriteMaterial=Mc;r.SrcAlphaFactor=204;r.SrcAlphaSaturateFactor=
|
|
|
+r.ShaderChunk=Ba;r.ShaderLib=Qb;r.ShaderMaterial=sb;r.ShadowMaterial=nd;r.Shape=Qc;r.ShapeBufferGeometry=ld;r.ShapeGeometry=kd;r.ShapePath=Ih;r.ShapeUtils=nc;r.ShortType=1011;r.Skeleton=Zf;r.SkeletonHelper=le;r.SkinnedMesh=Yf;r.SmoothShading=2;r.Sphere=Wa;r.SphereBufferGeometry=jd;r.SphereGeometry=jf;r.Spherical=Bd;r.SphericalHarmonics3=pb;r.Spline=Xh;r.SplineCurve=Wb;r.SplineCurve3=uj;r.SpotLight=og;r.SpotLightHelper=ke;r.Sprite=Re;r.SpriteMaterial=Mc;r.SrcAlphaFactor=204;r.SrcAlphaSaturateFactor=
|
|
|
210;r.SrcColorFactor=202;r.StaticCopyUsage=35046;r.StaticDrawUsage=35044;r.StaticReadUsage=35045;r.StereoCamera=lj;r.StreamCopyUsage=35042;r.StreamDrawUsage=35040;r.StreamReadUsage=35041;r.StringKeyframeTrack=jg;r.SubtractEquation=101;r.SubtractiveBlending=3;r.TOUCH={ROTATE:0,PAN:1,DOLLY_PAN:2,DOLLY_ROTATE:3};r.TangentSpaceNormalMap=0;r.TetrahedronBufferGeometry=Ud;r.TetrahedronGeometry=Ye;r.TextBufferGeometry=$d;r.TextGeometry=hf;r.Texture=Oa;r.TextureLoader=mg;r.TorusBufferGeometry=Yd;r.TorusGeometry=
|
|
|
df;r.TorusKnotBufferGeometry=Xd;r.TorusKnotGeometry=cf;r.Triangle=Ga;r.TriangleFanDrawMode=2;r.TriangleStripDrawMode=1;r.TrianglesDrawMode=0;r.TubeBufferGeometry=hd;r.TubeGeometry=bf;r.UVMapping=300;r.Uint16Attribute=function(a,b){console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead.");return new $c(a,b)};r.Uint16BufferAttribute=$c;r.Uint32Attribute=function(a,b){console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead.");
|
|
|
return new ad(a,b)};r.Uint32BufferAttribute=ad;r.Uint8Attribute=function(a,b){console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead.");return new Ee(a,b)};r.Uint8BufferAttribute=Ee;r.Uint8ClampedAttribute=function(a,b){console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead.");return new Fe(a,b)};r.Uint8ClampedBufferAttribute=Fe;r.Uniform=Yg;r.UniformsLib=fa;r.UniformsUtils=Ri;r.UnsignedByteType=1009;
|