s(e,t,r,a,i){e.getClearColor(this.originalClearColor);const s=e.getClearAlpha(),n=e.autoClear;e.setRenderTarget(r),e.autoClear=!1,null!=a&&(e.setClearColor(a),e.setClearAlpha(i||0),e.clear()),this.fsQuad.material=t,this.fsQuad.render(e),e.autoClear=n,e.setClearColor(this.originalClearColor),e.setClearAlpha(s)}renderOverride(e,t,r,a,i){e.getClearColor(this.originalClearColor);const s=e.getClearAlpha(),n=e.autoClear;e.setRenderTarget(r),e.autoClear=!1,a=t.clearColor||a,i=t.clearAlpha||i,null!=a&&(e.setClearColor(a),e.setClearAlpha(i||0),e.clear()),this.scene.overrideMaterial=t,e.render(this.scene,this.camera),this.scene.overrideMaterial=null,e.autoClear=n,e.setClearColor(this.originalClearColor),e.setClearAlpha(s)}setSize(e,t){this.beautyRenderTarget.setSize(e,t),this.saoRenderTarget.setSize(e,t),this.blurIntermediateRenderTarget.setSize(e,t),this.normalRenderTarget.setSize(e,t),this.depthRenderTarget.setSize(e,t),this.saoMaterial.uniforms.size.value.set(e,t),this.saoMaterial.uniforms.cameraInverseProjectionMatrix.value.copy(this.camera.projectionMatrixInverse),this.saoMaterial.uniforms.cameraProjectionMatrix.value=this.camera.projectionMatrix,this.saoMaterial.needsUpdate=!0,this.vBlurMaterial.uniforms.size.value.set(e,t),this.vBlurMaterial.needsUpdate=!0,this.hBlurMaterial.uniforms.size.value.set(e,t),this.hBlurMaterial.needsUpdate=!0}}SAOPass.OUTPUT={Beauty:1,Default:0,SAO:2,Depth:3,Normal:4};const LuminosityHighPassShader={shaderID:"luminosityHighPass",uniforms:{tDiffuse:{value:null},luminosityThreshold:{value:1},smoothWidth:{value:1},defaultColor:{value:new THREE.Color(0)},defaultOpacity:{value:0}},vertexShader:"varying vec2 vUv;void main(){vUv=uv;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1);}",fragmentShader:"uniform sampler2D tDiffuse;uniform vec3 defaultColor;uniform float defaultOpacity,luminosityThreshold,smoothWidth;varying vec2 vUv;void main(){vec4 d=texture2D(tDiffuse,vUv);vec3 v=vec3(.299,.587,.114);float l=dot(d.xyz,v);vec4 t=vec4(defaultColor.xyz,defaultOpacity);float s=smoothstep(luminosityThreshold,luminosityThreshold+smoothWidth,l);gl_FragColor=mix(t,d,s);}"};class UnrealBloomPass extends Pass{constructor(e,t,r,a){super(),this.strength=t,this.radius=r,this.threshold=a,this.resolution=new THREE.Vector2(e.x,e.y),this.clearColor=new THREE.Color(0,0,0),this.renderTargetsHorizontal=[],this.renderTargetsVertical=[],this.nMips=5;let i=Math.round(this.resolution.x/2),s=Math.round(this.resolution.y/2);this.renderTargetBright=new THREE.WebGLRenderTarget(i,s,{type:THREE.HalfFloatType}),this.renderTargetBright.texture.name="UnrealBloomPass.bright",this.renderTargetBright.texture.generateMipmaps=!1;for(let e=0;e<this.nMips;e++){const t=new THREE.WebGLRenderTarget(i,s,{type:THREE.HalfFloatType});t.texture.name="UnrealBloomPass.h"+e,t.texture.generateMipmaps=!1,this.renderTargetsHorizontal.push(t);const r=new THREE.WebGLRenderTarget(i,s,{type:THREE.HalfFloatType});r.texture.name="UnrealBloomPass.v"+e,r.texture.generateMipmaps=!1,this.renderTargetsVertical.push(r),i=Math.round(i/2),s=Math.round(s/2)}const n=LuminosityHighPassShader;this.highPassUniforms=THREE.UniformsUtils.clone(n.uniforms),this.highPassUniforms.luminosityThreshold.value=a,this.highPassUniforms.smoothWidth.value=.01,this.materialHighPassFilter=new THREE.ShaderMaterial({uniforms:this.highPassUniforms,vertexShader:n.vertexShader,fragmentShader:n.fragmentShader}),this.separableBlurMaterials=[];const o=[3,5,7,9,11];i=Math.round(this.resolution.x/2),s=Math.round(this.resolution.y/2);for(let e=0;e<this.nMips;e++)this.separableBlurMaterials.push(this.getSeperableBlurMaterial(o[e])),this.separableBlurMaterials[e].uniforms.texSize.value=new THREE.Vector2(i,s),i=Math.round(i/2),s=Math.round(s/2);this.compositeMaterial=this.getCompositeMaterial(this.nMips),this.compositeMaterial.uniforms.blurTexture1.value=this.renderTargetsVertical[0].texture,this.compositeMaterial.uniforms.blurTexture2.value=this.renderTargetsVertical[1].texture,this.compositeMaterial.uniforms.blurTexture3.value=this.renderTargetsVertical[2].texture,this.compositeMaterial.uniforms.blurTexture4.value=this.renderTargetsVertical[3].texture,this.compositeMaterial.uniforms.blurTexture5.value=this.renderTargetsVertical[4].texture,this.compositeMaterial.uniforms.bloomStrength.value=t,this.compositeMaterial.uniforms.bloomRadius.value=.1,this.compositeMaterial.uniforms.bloomFactors.value=[1,.8,.6,.4,.2],this.bloomTintColors=[new THREE.Vector3(1,1,1),new THREE.Vector3(1,1,1),new THREE.Vector3(1,1,1),new THREE.Vector3(1,1,1),new THREE.Vector3(1,1,1)],this.compositeMaterial.uniforms.bloomTintColors.value=this.bloomTintColors;const l=CopyShader;this.copyUniforms=THREE.UniformsUtils.clone(l.uniforms),this.blendMaterial=new THREE.ShaderMaterial({uniforms:this.copyUniforms,vertexShader:l.vertexShader,fragmentShader:l.fragmentShader,blending:THREE.AdditiveBlending,depthTest:!1,depthWrite:!1,transparent:!0}),this.enabled=!0,this.needsSwap=!1,this._oldClearColor=new THREE.Color,this.oldClearAlpha=1,this.basic=new THREE.MeshBasicMaterial({transparent:!0}),this.fsQuad=new FullScreenQuad(null)}dispose(){for(let e=0;e<this.renderTargetsHorizontal.length;e++)this.renderTargetsHorizontal[e].dispose();for(let e=0;e<this.renderTargetsVertical.length;e++)this.renderTargetsVertical[e].dispose();this.renderTargetBright.dispose();for(let e=0;e<this.separableBlurMaterials.length;e++)this.separableBlurMaterials[e].dispose();this.compositeMaterial.dispose(),this.blendMaterial.dispose(),this.basic.dispose(),this.fsQuad.dispose()}setSize(e,t){let r=Math.round(e/2),a=Math.round(t/2);this.renderTargetBright.setSize(r,a);for(let e=0;e<this.nMips;e++)this.renderTargetsHorizontal[e].setSize(r,a),this.renderTargetsVertical[e].setSize(r,a),this.separableBlurMaterials[e].uniforms.texSize.value=new THREE.Vector2(r,a),r=Math.round(r/2),a=Math.round(a/2)}render(e,t,r,a,i){e.getClearColor(this._oldClearColor),this.oldClearAlpha=e.getClearAlpha();const s=e.autoClear;e.autoClear=!1,e.setClearColor(this.clearColor,0),i&&e.state.buffers.stencil.setTest(!1),this.renderToScreen&&(this.fsQuad.material=this.basic,this.basic.map=r.texture,e.setRenderTarget(null),e.clear(),this.fsQuad.render(e)),this.highPassUniforms.tDiffuse.value=r.texture,this.highPassUniforms.luminosityThreshold.value=this.threshold,this.fsQuad.material=this.materialHighPassFilter,e.setRenderTarget(this.renderTargetBright),e.clear(),this.fsQuad.render(e);let n=this.renderTargetBright;for(let t=0;t<this.nMips;t++)this.fsQuad.material=this.separableBlurMaterials[t],this.separableBlurMaterials[t].uniforms.colorTexture.value=n.texture,this.separableBlurMaterials[t].uniforms.direction.value=UnrealBloomPass.BlurDirectionX,e.setRenderTarget(this.renderTargetsHorizontal[t]),e.clear(),this.fsQuad.render(e),this.separableBlurMaterials[t].uniforms.colorTexture.value=this.renderTargetsHorizontal[t].texture,this.separableBlurMaterials[t].uniforms.direction.value=UnrealBloomPass.BlurDirectionY,e.setRenderTarget(this.renderTargetsVertical[t]),e.clear(),this.fsQuad.render(e),n=this.renderTargetsVertical[t];this.fsQuad.material=this.compositeMaterial,this.compositeMaterial.uniforms.bloomStrength.value=this.strength,this.compositeMaterial.uniforms.bloomRadius.value=this.radius,this.compositeMaterial.uniforms.bloomTintColors.value=this.bloomTintColors,e.setRenderTarget(this.renderTargetsHorizontal[0]),e.clear(),this.fsQuad.render(e),this.fsQuad.material=this.blendMaterial,this.copyUniforms.tDiffuse.value=this.renderTargetsHorizontal[0].texture,i&&e.state.buffers.stencil.setTest(!0),this.renderToScreen?(e.setRenderTarget(null),this.fsQuad.render(e)):(e.setRenderTarget(r),this.fsQuad.render(e)),e.setClearColor(this._oldClearColor,this.oldClearAlpha),e.autoClear=s}getSeperableBlurMaterial(e){return new THREE.ShaderMaterial({defines:{KERNEL_RADIUS:e,SIGMA:e},uniforms:{colorTexture:{value:null},texSize:{value:new THREE.Vector2(.5,.5)},direction:{value:new THREE.Vector2(.5,.5)}},vertexShader:"varying vec2 vUv;void main(){vUv=uv;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1);}",fragmentShader:"#include <common>\nvarying vec2 vUv;uniform sampler2D colorTexture;uniform vec2 texSize,direction;float gaussianPdf(float e,float v){return.39894*exp(-.5*e*e/(v*v))/v;}void main(){vec2 v=1./texSize;float A=float(SIGMA),e=gaussianPdf(0.,A);vec4 c=texture2D(colorTexture,vUv)*e;for(int f=1;f<KERNEL_RADIUS;f++){float S=float(f),d=gaussianPdf(S,A);vec2 g=direction*v*S;vec4 i=texture2D(colorTexture,vUv+g),r=texture2D(colorTexture,vUv-g);c+=(i+r)*d;e+=2.*d;}gl_FragColor=vec4(c/e);}"})}getCompositeMaterial(e){return new THREE.ShaderMaterial({defines:{NUM_MIPS:e},uniforms:{blurTexture1:{value:null},blurTexture2:{value:null},blurTexture3:{value:null},blurTexture4:{value:null},blurTexture5:{value:null},bloomStrength:{value:1},bloomFactors:{value:null},bloomTintColors:{value:null},bloomRadius:{value:0}},vertexShader:"varying vec2 vUv;void main(){vUv=uv;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1);}",fragmentShader:"varying vec2 vUv;uniform sampler2D blurTexture1,blurTexture2,blurTexture3,blurTexture4,blurTexture5;uniform float bloomStrength,bloomRadius,bloomFactors[NUM_MIPS];uniform vec3 bloomTintColors[NUM_MIPS];float lerpBloomFactor(const float b){float v=1.2-b;return mix(b,v,bloomRadius);}void main(){gl_FragColor=bloomStrength*(lerpBloomFactor(bloomFactors[0])*vec4(bloomTintColors[0],1)*texture2D(blurTexture1,vUv)+lerpBloomFactor(bloomFactors[1])*vec4(bloomTintColors[1],1)*texture2D(blurTexture2,vUv)+lerpBloomFactor(bloomFactors[2])*vec4(bloomTintColors[2],1)*texture2D(blurTexture3,vUv)+lerpBloomFactor(bloomFactors[3])*vec4(bloomTintColors[3],1)*texture2D(blurTexture4,vUv)+lerpBloomFactor(bloomFactors[4])*vec4(bloomTintColors[4],1)*texture2D(blurTexture5,vUv));}"})}}let R,dim,p,renderer,scene,camera,composer,clock,materialsList;UnrealBloomPass.BlurDirectionX=new THREE.Vector2(1,0),UnrealBloomPass.BlurDirectionY=new THREE.Vector2(0,1);let noisePass,postfxPass,saoComposer,postFX=!0,cubemap=generateCubeMap(),simplexNoise="vec4 v(vec4 a){vec4 b=mod(a,289.);return mod((b*34.+10.)*b,289.);}float psrdnoise(vec3 f,vec3 o,float F){const mat3 G=mat3(0.,1.,1.,1.,0.,1.,1.,1.,0.),I=mat3(-.5,.5,.5,.5,-.5,.5,.5,.5,-.5);vec3 H;H=G*f;vec3 a=floor(H),J=fract(H),w=step(J.xyx,J.yzz),K=1.-w,L=vec3(K.z,w.xy),M=vec3(K.xy,w.z),Z=min(L,M),_=max(L,M),k=a+Z,l=a+_,m=a+vec3(1.),g,h,i,j;g=I*a,h=I*k,i=I*l,j=I*m;vec3 x=f-g,y=f-h,z=f-i,A=f-j;if(any(greaterThan(o,vec3(0.)))){vec4 p=vec4(g.x,h.x,i.x,j.x),q=vec4(g.y,h.y,i.y,j.y),r=vec4(g.z,h.z,i.z,j.z);p=o.x>0.?mod(p,o.x):p,q=o.y>0.?mod(q,o.y):q,r=o.z>0.?mod(r,o.z):r,a=floor(G*vec3(p.x,q.x,r.x)+.5),k=floor(G*vec3(p.y,q.y,r.y)+.5),l=floor(G*vec3(p.z,q.z,r.z)+.5),m=floor(G*vec3(p.w,q.w,r.w)+.5);}vec4 B=v(v(v(vec4(a.z,k.z,l.z,m.z))+vec4(a.y,k.y,l.y,m.y))+vec4(a.x,k.x,l.x,m.x)),N=B*3.883222,b=B*-.00692+.99654,O=B*.108706,s=cos(N),t=sin(N),C=sqrt(1.-b*b),c,d,e;if(F!=0.){vec4 S=s*C,T=t*C,oa=b,D=sin(O),E=cos(O),P=t*D-s*E,pa=mix(P*t,D,b),qa=mix(-P*s,E,b),ra=-(T*E+S*D),U=vec4(sin(F)),V=vec4(cos(F));c=V*S+U*pa,d=V*T+U*qa,e=V*oa+U*ra;}else c=s*C,d=t*C,e=b;vec3 aa=vec3(c.x,d.x,e.x),ba=vec3(c.y,d.y,e.y),ca=vec3(c.z,d.z,e.z),da=vec3(c.w,d.w,e.w);vec4 n=.5-vec4(dot(x,x),dot(y,y),dot(z,z),dot(A,A));n=max(n,0.);vec4 ea=n*n,fa=ea*n,ga=vec4(dot(aa,x),dot(ba,y),dot(ca,z),dot(da,A));float sa=dot(fa,ga);return 39.5*sa;}";function makeMint(e,t,r,a,i,s,n,o,l,u,h,c){return{hash:e,lights:t,color:r,rotation:a,boxSettings:i,sphereSettings:s,circleSettings:n,lineSettings:o,generalScale:l,bloom:u,saoBias:h,background:c}}function getMint(e,t=0){let r,a={0:makeMint("0xDeterminant",[[[-5,2,3],.25],[[5,3,3],1.5]],0,[45,45,0],[2e3,[1,.25,.13],[1,1.5,1],[0,0]],[250,.035,[1,2,1]],[0,.1,[1,1.5,1]],[500,[10,.005]],3,[.38,.38,1],40,[.1,.1,.1]),1:makeMint("0xAmaranthEsquiva",[[[2.2,1.5,2.7],1],[[2,-5,5],1]],593,[45,45,0],[2e3,[1,3,.02],[1,1.5,3.5],[4,3]],[500,.02,[1,1.5,1]],[500,.01,[1,1.5,1]],[100,[30,.005]],3,[.3,.33,1],40,[.1,.1,.1]),2:makeMint("0xAnhidridaex",[[[-5,-.2,5],1.04],[[-5,5,5],.85]],532,[45,45,0],[2e3,[2,.05,.5],[1,1.45,.5],[1,0]],[1e3,.015,[1,1.4,1]],[1e3,.01,[1,1,1]],[2e3,[2,.003]],1.5,[.5,.3,1],40,[.1,.1,.1]),3:makeMint("0xApexLiminal",[[[-.5,.8,5],1],[[-.1,2,5],1]],1435,[45,-45,0],[2e3,[1,2,.02],[1,2,1],[1,1]],[50,.02,[1.3,1.5,1.1]],[500,.01,[1,1,1]],[200,[20,.005]],2,[.25,.28,1],48,[.1,.1,.1]),4:makeMint("0xAxialApathy",[[[1.5,1.5,5],1],[[5,5,5],1]],1185,[-45,0,45],[2e3,[.04,.35,1],[.5,.5,.9],[1,0]],[300,.015,[.5,.5,1]],[500,.008,[.75,1,0]],[200,[10,.003]],2.3,[.4,.28,1],40,[.1,.11,.1]),5:makeMint("0xBekhertinsHark",[[[2,2,5],1],[[.3,.3,5],.7]],270,[45,45,90],[2500,[1,.25,.13],[1.5,1.5,1.5],[1,0]],[500,.015,[1,1.5,1]],[1e3,.015,[1,1.5,1]],[500,[10,.005]],2.5,[.33,.24,1],50,[.05,.05,.05]),6:makeMint("0xDexhathroneBarbican",[[[5,2,5],2.5],[[5,1,5],2.5]],448,[45,0,0],[2500,[.25,.02,1.5],[1,1,1],[4,1]],[500,.035,[1,1.5,1]],[1e3,.015,[1,1.5,1]],[100,[10,.005]],2.5,[.5,.15,1],40,[.1,.1,.1]),7:makeMint("0xDeviantMillica",[[[-5,-3.3,5],1],[[-1.9,2,.8],1.28]],162,[45,-50,0],[1e3,[1,1,1],[2,.15,2],[4,2]],[2e3,.015,[1.5,.5,2]],[1e3,.01,[1.5,2,1]],[300,[5,.005]],2,[.5,.25,1],50,[.1,.1,.1]),8:makeMint("0xFantomPaper",[[[-5,5,5],.25],[[0,1,2],1]],1499,[-45,0,45],[3e3,[1.89,1.41,.025],[1.25,1.25,2.2],[1,0]],[500,.02,[1.3,1.3,2]],[200,.01,[1.5,1.5,2]],[300,[10,.005]],1,[.35,.4,1],40,[.12,.12,.15]),9:makeMint("0xDaemonFluxus",[[[0,5,1],.3],[[5,.8,3],.8]],592,[56.5,30,53],[500,[1,3.5,.1],[.5,.5,1],[4,1]],[500,.01,[1,1.5,1]],[500,.01,[1,1.5,1]],[150,[10,.005]],3.65,[.15,.33,1],50,[1,.01,.01]),10:makeMint("0xCetraParallax",[[[-2,0,3],.75],[[.5,1,3],.8]],532,[56.5,30,53],[2e3,[1,.25,.75],[1.5,1,1],[1,0]],[500,.015,[1,2,1]],[1e3,.01,[1,1,1]],[100,[20,.005]],3,[.33,.19,1],41,[.4,.4,.4]),11:makeMint("0xElephantStaircase",[[[-2.5,-1.5,5],.75],[[-5,2,5],.9]],200,[45,-50,0],[1e3,[1,1,1],[2,.15,2],[1,2]],[250,.015,[1.5,1,1]],[500,.01,[1,1,1]],[50,[25,.005]],3,[.25,.2,1],45,[1,0,0]),12:makeMint("0xAldebaran",[[[3.6,2,5],.9],[[.8,3.3,3],.8]],1050,[45,45,0],[2e3,[.05,2,2.75],[1.1,1.6,1.1],[1,0]],[1e3,.02,[1,2.15,1]],[500,.018,[1,2,1]],[1e3,[4,.005]],1,[.4,.3,1],39,[.1,.135,.12]),13:makeMint("0xAhrkanaCetrum",[[[2,3.5,5],.6],[[0,1,5],.8]],4,[-45,0,-45],[2e3,[.25,1,.5],[1,1.3,1],[1,0]],[500,.035,[2.3,1.6,2.1]],[120,.1,[1.2,1,.4]],[200,[10,.004]],3,[.5,.18,1],42,[.3,.3,.3]),14:makeMint("0xViracocha",[[[.7,-5,5],.33],[[5,5,5],1.5]],591,[45,45,0],[2e3,[1,.6,.02],[1,.8,1],[1,0]],[1e3,.01,[1,1,1]],[1e3,.005,[1,1,1]],[1e3,[1.25,.005]],3.4,[.15,.33,1],50,[1,.1,.1]),15:makeMint("0xFermiRizhome",[[[-2,5,5],.75],[[0,2.5,5],.75]],200,[45,45,0],[1e3,[.5,2,1],[1,2,1],[1,1]],[1e3,.012,[1.25,2.05,1.25]],[500,.01,[1.4,2.5,1]],[1e3,[5,.005]],1.1,[.3,.21,1],40,[.13,.1,.1]),16:makeMint("0xFortressFaladakh",[[[-5,5,5],1],[[-1,2,5],1.25]],4,[45,45,0],[1e3,[1,1,1],[1,1,2],[1,2]],[250,.015,[1.5,1,1]],[500,.01,[1,1,1]],[300,[5,.005]],3,[.7,.18,1],45,[1,.1,.1]),17:makeMint("0xAhltaEdifice",[[[5,5,5],.35],[[-4,1.3,2],1]],1412,[-45,0,45],[3e3,[.05,1.5,.3],[.65,.6,2.8],[1,0]],[500,.02,[1,1,2.25]],[200,.01,[1,1.5,1]],[500,[4,.005]],1,[.2,.56,1],35,[.1,.105,.1]),18:makeMint("0xDecafonAvaricis",[[[-5,5,5],1.5],[[.5,.5,5],1.5]],264,[45,45,0],[1e3,[1,.1,1],[1,1.5,2],[4,2]],[500,.015,[1,1,1]],[1e3,.01,[1,1,1]],[50,[20,.005]],3,[.5,.12,1],45,[.1,.1,.8]),19:makeMint("0xAmaru",[[[5,2.5,5],1.25],[[2,1,5],1]],591,[56.5,30,53],[2e3,[1,4.5,.03],[.5,.5,1],[1,0]],[1e3,.01,[1,1,1]],[1e3,.005,[1,1,1]],[250,[5,.005]],3,[.2,.2,1],45,[.9,.5,.1]),20:makeMint("0xGhoikerinku",[[[1,1,5],1],[[5,5,5],1]],421,[45,45,0],[2e3,[.75,1.5,.25],[1,1.5,.7],[1,0]],[500,.03,[1,1,1]],[500,.02,[1,1,1]],[250,[50,.005]],3,[.3,.2,1],43,[.3,.9,.1]),21:makeMint("0xAnagramInverted",[[[-5,5,5],1],[[-5,0,5],1.5]],424,[45,45,0],[1e3,[1,.9,1],[1,1,2],[4,2]],[500,.015,[1,1,1]],[1500,.01,[1,1,1]],[100,[50,.005]],3,[.5,.15,1],50,[.1,.1,.8]),22:makeMint("0xEntoCholeoptera",[[[.2,5,5],1],[[-1.8,5,5],1]],175,[-45,0,45],[1e3,[.1,.3,1.8],[1,1,1.3],[1,3]],[250,.03,[1,1,1.5]],[1500,.01,[1.2,1.5,0]],[250,[5,.008]],1.35,[.33,.3,1],40,[.1,.1,.12]),23:makeMint("0xCloromorphicolAbatica",[[[3.1,2.5,5],1],[[-2,2,2.5],.5]],1040,[45,-45,0],[2e3,[1,.03,3],[1,1,1],[1,4]],[100,.02,[2.2,1.25,2]],[500,.01,[1,1,1]],[50,[10,.005]],2.35,[.15,.28,1],47,[1,0,1]),24:makeMint("0xBoulderSculptorica",[[[-5,5,5],.75],[[0,1,2],1.4]],1498,[-45,0,45],[2200,[2.7,1.41,.025],[1.4,.75,2],[1,0]],[500,.02,[1.5,1.5,1.8]],[1e3,.01,[3,3,0]],[500,[10,.005]],1,[.35,.32,1],42,[.1,.11,.15]),25:makeMint("0xHorizonVertical",[[[-5,1,5],1],[[2.5,3,5],1]],200,[45,45,0],[1002,[2,2,.5],[1,1,1],[1,2]],[250,.015,[1.32,2.6,1]],[1e3,.01,[1,1.5,1]],[100,[30,.005]],2.5,[.6,.18,1],45,[0,.5,1]),26:makeMint("0xFerraraHallucina",[[[-5,-3.3,5],1],[[-1.9,2,.8],1.28]],1050,[45,-50,0],[1e3,[1.3,.45,1],[2,.15,2],[4,2]],[800,.015,[1.5,.5,2]],[500,.01,[1.5,2,1]],[300,[5,.005]],2,[.5,.28,1],50,[.4,.1,.25]),27:makeMint("0xCaminataBifurcata",[[[0,5,5],.5],[[5,5,5],1]],362,[45,45,90],[2e3,[1,.25,.13],[1.5,1.5,1.5],[1,3]],[500,.035,[1,1.5,1]],[800,.01,[1,1.5,1]],[500,[10,.005]],2.5,[.35,.3,1],50,[.4,.4,.5]),28:makeMint("0xCorniusAngle",[[[-5,5,5],1],[[5,5,5],1]],1250,[0,-45,45],[2e3,[.025,1,3.5],[1,.38,.38],[3,1]],[60,.01,[1.22,1,1.31]],[1e3,.005,[1.4,1.5,0]],[240,[4,.01]],1.75,[.2,6,1],38,[.02,.02,.02]),29:makeMint("0xDehfaMinim",[[[-5,5,5],1.8],[[-1.5,5,5],1]],306,[45,45,0],[2e3,[3.5,3.27,.04],[-1.08,.64,1.1],[1,1]],[100,.02,[1.5,1.2,1.5]],[1e3,.01,[2,2,0]],[400,[30,.003]],2.3,[.15,.25,1],45,[1,.01,.01]),30:makeMint("0xAncoraBeatha",[[[5,5,5],1],[[-5,5,5],.75]],389,[45,45,90],[2500,[1,.6,.01],[.7,1.5,1.6],[4,3]],[200,.02,[1,1,1]],[1e3,.015,[2,2,2]],[200,[10,.005]],2,[.2,.25,1],42,[.08,.08,.12]),31:makeMint("0xDhenteMicelia",[[[-5,5,5],.5],[[0,.8,5],.5]],593,[45,45,0],[2500,[.75,2.5,.025],[.7,1.5,1.3],[4,4]],[200,.02,[1,1,1]],[1e3,.015,[2,2,2]],[100,[10,.005]],2.3,[.15,.37,1],42,[.05,.05,.08]),32:makeMint("0xEhafaDehafa",[[[1,1,5],1.5],[[1.5,-5,5],2]],1498,[45,45,0],[1e3,[2,.05,1.4],[1.6,1.9,1],[1,1]],[100,.02,[1.7,2.1,1]],[500,.015,[2,2,0]],[400,[5,.005]],1,[.35,.25,1],42,[.1,.1,.16]),33:makeMint("0xDecaFern",[[[0,4,5],.8],[[3.3,3,2],.8]],449,[56.5,-30,-53],[2e3,[1,3.5,.025],[.5,.5,1],[1,2]],[60,.015,[.6,.75,1]],[0,.005,[-.5,.5,3]],[240,[20,.003]],3.5,[.4,.3,1],50,[.1,.1,.1]),34:makeMint("0xFehrriDexatrone",[[[-5,5,2.5],1],[[5,5,5],1]],1330,[45,0,0],[2500,[.25,.02,1.5],[1,1,1],[3,0]],[100,.015,[.85,1,1]],[2e3,.01,[1,1.5,1]],[100,[10,.005]],2.5,[.5,.25,1],38,[.11,.1,.1]),35:makeMint("0xFacaciaNubia",[[[-3,5,5],.5],[[2.5,0,1.5],.75]],135,[45,45,0],[1e3,[1.5,1.5,.5],[1,1,1],[4,0]],[500,.01,[1.4,1.16,.98]],[1e3,.008,[1,1,1]],[200,[30,.005]],3,[.25,.26,1],45,[1,.1,.5]),36:makeMint("0xEblemaFahr",[[[-5,5,5],.75],[[-5,5,5],.75]],4,[45,-50,0],[1e3,[1,1,1],[2.25,.45,1.85],[4,4]],[2e3,.015,[1.5,.5,2]],[1e3,.01,[1.5,2,1]],[0,[20,.005]],2,[.35,.17,1],50,[.9,.3,.1]),37:makeMint("0xDheliosFarenheit",[[[-5,5,5],1.5],[[-5,0,5],1.5]],532,[45,45,0],[1e3,[1,1,1],[1,1,2],[4,2]],[500,.015,[1.4,1.31,1.05]],[1500,.007,[1,1,1]],[0,[25,.005]],3,[.75,.08,1],45,[.1,.1,.1]),38:makeMint("0xHeliosTrifacta",[[[5,3,3],2],[[-3.5,3.5,3],1]],259,[-45,0,45],[1250,[1,1.4,.02],[2,2,1.5],[1,4]],[100,.03,[0,1,4]],[500,.01,[1,1,1]],[200,[20,.005]],2,[.18,.15,1],40,[.1,.1,.1]),39:makeMint("0xDaedalus",[[[0,5,5],.35],[[2.5,1,2],1]],1499,[-45,0,45],[3e3,[.05,.91,.21],[1.25,1.25,2.1],[1,2]],[500,.02,[1,1,1.5]],[200,.01,[1,1.5,1]],[0,[5,.005]],2,[.38,.5,1],40,[.02,.02,.02]),40:makeMint("0xBehringerCabe",[[[-3,3.4,3],1],[[5,0,5],.5]],1095,[56.5,30,53],[1e3,[3,.1,7],[.5,.5,.5],[1,3]],[50,.02,[4,2.1,1.4]],[0,.02,[1.5,3,0]],[150,[25,.005]],1.3,[.35,.3,1],42,[.05,.09,.12]),41:makeMint("0xCefacHeamedh",[[[-5,2.8,5],.75],[[0,1,2],1.4]],179,[45,45,0],[2520,[2.5,1.41,.025],[1,2,1],[1,4]],[500,.025,[1.3,2,1.3]],[500,.01,[1,2,0]],[1e3,[5,.005]],1,[.32,.32,1],40,[.08,.08,.08]),42:makeMint("0xAbaceAhlta",[[[-5,.5,5],.8],[[0,3,2],.8]],1499,[0,45,-45],[2e3,[1,3.5,.05],[.5,.5,1],[1,1]],[550,.01,[1,1,1]],[1e3,.006,[1,1,1]],[100,[20,.005]],3.5,[.25,.25,1],43,[.1,.1,.1]),43:makeMint("0xEbehfAfaha",[[[1.4,.5,5],.75],[[5,5,5],.75]],1200,[45,45,90],[2500,[1.5,.5,.05],[.45,1.8,2],[4,3]],[100,.015,[1,1,1]],[500,.015,[2,2,2]],[200,[10,.005]],2.2,[.33,.25,1],42,[.05,.05,.05]),44:makeMint("0xDeahAfurah",[[[-5,5,5],1.5],[[.3,.3,5],1.5]],384,[45,45,0],[1e3,[1,1,1],[1,1,2],[4,2]],[500,.015,[1,1,1]],[1500,.01,[1,1,1]],[100,[23.8,.005]],3,[.4,.18,1],48,[.1,.1,.1]),45:makeMint("0xAherialDeah",[[[5,5,5],1],[[-5,.8,5],1]],385,[45,-45,0],[2e3,[2.5,.75,.01],[2,-.5,1.5],[1,0]],[100,.02,[1.02,.5,2.8]],[1e3,.012,[1,2,0]],[50,[20,.005]],2.25,[.25,.25,1],42,[.1,.1,.1]),46:makeMint("0xDarhaDendra",[[[1,1,5],1],[[0,1,5],1]],1040,[45,45,0],[1e3,[.05,2,2],[1,2,1],[1,0]],[500,.02,[1.1,1.95,1.3]],[1e3,.01,[2,2,1]],[200,[20,.005]],1.15,[.15,.25,1],45,[.1,.1,.12]),47:makeMint("0xFahciaAbea",[[[-2.5,3,3],1.5],[[1,3.4,3],.75]],360,[-45,0,45],[1250,[1,1.4,.01],[2,2,1.5],[1,4]],[200,.03,[1.5,1.5,1.5]],[1e3,.01,[1,2,1]],[100,[20,.005]],2,[.2,.22,1],40,[.1,.1,.1]),48:makeMint("0xBehmensAhmad",[[[5,5,5],.8],[[3,1.5,5],.8]],1e3,[45,45,90],[2500,[1,.8,.05],[.25,2,2],[4,2]],[200,.02,[1,1,1]],[1e3,.015,[2,2,2]],[50,[10,.005]],2,[.35,.25,1],45,[.01,.01,.01]),49:makeMint("0xCeaFehen",[[[1,3.2,5],.8],[[.7,1.2,2],.8]],1399,[45,0,45],[2e3,[.5,2.5,.02],[.5,.5,1],[1,2]],[50,.01,[1,1,1]],[500,.01,[1,1,0]],[400,[20,.005]],3.5,[.25,.28,1],42,[.1,.1,.1])};if(e in a)r=a[e];else{r=a[e%50]}return tokenData.hash=r.hash,null!=t&&(r.color=t),r}function u(e){return{value:e}}function toRGB(e){return[((e=Math.floor(e))>>16&255)/255,(e>>8&255)/255,(255&e)/255]}const toRadians=e=>Math.PI/180*e;function getRenderTarget(e,t,r,a){let i=new THREE.WebGLRenderTarget(e,t,r),s=new THREE.OrthographicCamera(-1,1,1,-1,0,1),n=new THREE.Scene,o=new THREE.PlaneGeometry(2,2),l=new THREE.Mesh(o,a);return n.add(l),{target:i,scene:n,camera:s}}function writeStaticTexture(e,t,r,a){let i=getRenderTarget(t.x,t.y,r,a);return e.setRenderTarget(i.target),e.render(i.scene,i.camera),e.setRenderTarget(null),i.target.texture}function createContainer(e){let t=document.createElement("div");return t.setAttribute("id","threecanvas"),t.setAttribute("class","threecanvas"),t.appendChild(e.domElement),document.body.appendChild(t),t}function getDirLight(e,t,r,a,i){const s=new THREE.DirectionalLight(t,r);return s.position.set(e[0],e[1],e[2]),s.castShadow=a,s.shadow.camera.near=0,s.shadow.camera.far=10,s.shadow.camera.left=-5,s.shadow.camera.right=5,s.shadow.camera.top=5,s.shadow.camera.b
↓ show full (22,511 bytes)