three-low-poly 0.9.9 → 0.9.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/dist/index.cjs.js +9 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1531 -1360
- package/dist/index.es.js.map +1 -1
- package/dist/index.iife.js +9 -9
- package/dist/index.iife.js.map +1 -1
- package/dist/index.umd.js +9 -9
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Procedurally generated low poly modeling for Three.js.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-

|
|
5
|
+

|
|
6
|
+
_Example Library scene_
|
|
8
7
|
|
|
9
8
|
## Getting Started
|
|
10
9
|
|
|
@@ -25,8 +24,11 @@ scene.add(rocks);
|
|
|
25
24
|
|
|
26
25
|
See the [examples](https://jasonsturges.com/three-low-poly/) for more information.
|
|
27
26
|
|
|
27
|
+

|
|
28
|
+
_Example Graveyard scene_
|
|
29
|
+
|
|
28
30
|
## Usage
|
|
29
31
|
|
|
30
|
-
Assets are procedurally generated and
|
|
32
|
+
Assets are procedurally generated and customizable through parameters, typically based on a core geometry that combines a mesh with a material.
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
Alongside these geometries, there are prefabricated models that can be added directly to the scene, as well as factory methods for bulk creation.
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("three"),G=require("three/addons/utils/BufferGeometryUtils.js"),me=require("three/addons/objects/Sky.js"),he=require("three/addons/postprocessing/EffectComposer.js"),U=require("three/addons/postprocessing/RenderPass.js"),ue=require("three/addons/postprocessing/ShaderPass.js"),g={UP:new e.Vector3(0,1,0),DOWN:new e.Vector3(0,-1,0),LEFT:new e.Vector3(-1,0,0),RIGHT:new e.Vector3(1,0,0),FORWARD:new e.Vector3(0,0,1),BACKWARD:new e.Vector3(0,0,-1),X:new e.Vector3(1,0,0),Y:new e.Vector3(0,1,0),Z:new e.Vector3(0,0,1),XY:new e.Vector3(1,1,0).normalize(),XZ:new e.Vector3(1,0,1).normalize(),YZ:new e.Vector3(0,1,1).normalize(),XYZ:new e.Vector3(1,1,1).normalize()},I={LINEAR:(m,t)=>1-m/t,QUADRATIC:(m,t)=>Math.pow(1-m/t,2),SQUARE_ROOT:(m,t)=>Math.pow(1-m/t,.5),LOGARITHMIC:(m,t)=>Math.log(1+(t-m))/Math.log(1+t),SINE:(m,t)=>Math.cos(m/t*Math.PI/2),EXPONENTIAL:(m,t)=>Math.exp(-m/t),CUBIC:(m,t)=>Math.pow(1-m/t,3),GAUSSIAN:(m,t)=>Math.exp(-Math.pow(m,2)/(2*Math.pow(t/3,2))),INVERSE:(m,t)=>t/(t+m),SMOOTHSTEP:(m,t)=>{const o=Math.max(0,Math.min(1,1-m/t));return o*o*(3-2*o)}},de=(m,t,o,s,n=g.UP,c=I.LINEAR)=>{const r=m.attributes.position;for(let a=0;a<r.count;a++){const i=new e.Vector3;i.fromBufferAttribute(r,a);const l=i.distanceTo(t);if(l<o){const u=c(l,o)*s;i.add(n.clone().multiplyScalar(u)),r.setXYZ(a,i.x,i.y,i.z)}}r.needsUpdate=!0},fe=(m,t,o,s,n,c=g.UP,r=I.LINEAR)=>{const a=m.attributes.position;for(let i=0;i<a.count;i++){const l=new e.Vector3;l.fromBufferAttribute(a,i);const h=l.distanceTo(t);if(h<o){const d=r(h,o)*n,y=l.dot(c.normalize()),f=s-y;l.add(c.clone().multiplyScalar(f*d)),a.setXYZ(i,l.x,l.y,l.z)}}a.needsUpdate=!0},ye=(m,t,o,s,n=g.UP,c=I.LINEAR)=>{const r=m.attributes.position;for(let a=0;a<r.count;a++){const i=new e.Vector3;i.fromBufferAttribute(r,a);const l=i.distanceTo(t);if(l<o){const h=c(l,o),u=s*h,d=n.clone().normalize();i.x+=e.MathUtils.randFloatSpread(u)*d.x,i.y+=e.MathUtils.randFloatSpread(u)*d.y,i.z+=e.MathUtils.randFloatSpread(u)*d.z,r.setXYZ(a,i.x,i.y,i.z)}}r.needsUpdate=!0},Me=(m,t,o,s)=>{const n=m.attributes.position,c=new e.Vector3;for(let r=0;r<n.count;r++){const a=new e.Vector3;if(a.fromBufferAttribute(n,r),a.distanceTo(t)<o){let l=new e.Vector3,h=0;for(let u=0;u<n.count;u++)c.fromBufferAttribute(n,u),c.distanceTo(a)<o&&(l.add(c),h++);h>0&&(l.divideScalar(h),a.lerp(l,s),n.setXYZ(r,a.x,a.y,a.z))}}n.needsUpdate=!0},pe=(m,t,o,s,n=!1,c=I.LINEAR)=>{const r=m.attributes.position;for(let a=0;a<r.count;a++){const i=new e.Vector3;i.fromBufferAttribute(r,a);const l=i.distanceTo(t);if(l<o){const u=c(l,o)*s*(n?-1:1),d=i.clone().sub(t).normalize();i.add(d.multiplyScalar(u)),r.setXYZ(a,i.x,i.y,i.z)}}r.needsUpdate=!0},xe=(m,t,o,s,n=g.UP,c=I.LINEAR)=>{const r=m.attributes.position,a=new e.Quaternion;for(let i=0;i<r.count;i++){const l=new e.Vector3;l.fromBufferAttribute(r,i);const h=l.distanceTo(t);if(h<o){const d=c(h,o)*s;a.setFromAxisAngle(n,d),l.sub(t).applyQuaternion(a).add(t),r.setXYZ(i,l.x,l.y,l.z)}}r.needsUpdate=!0},we={LINEAR:m=>m,QUADRATIC_EASE_IN:m=>m*m,QUADRATIC_EASE_OUT:m=>1-Math.pow(1-m,2),SQUARE_ROOT_EASING:m=>Math.sqrt(m),LOGARITHMIC_EASING:m=>Math.log(1+m)/Math.log(2),SINE_EASE_IN:m=>1-Math.cos(m*Math.PI/2),SINE_EASE_OUT:m=>Math.sin(m*Math.PI/2),EXPONENTIAL_EASE_IN:m=>Math.pow(2,10*(m-1)),EXPONENTIAL_EASE_OUT:m=>1-Math.pow(2,-10*m),CUBIC_EASE_IN:m=>m*m*m,CUBIC_EASE_OUT:m=>1-Math.pow(1-m,3),GAUSSIAN_EASING:m=>Math.exp(-Math.pow(m-.5,2)/(2*.1)),INVERSE_EASING:m=>1/(1+m),SMOOTHSTEP_EASING:m=>m*m*(3-2*m)};class Ge extends e.Group{constructor(){super();const t=[],o=20,s=new e.SphereGeometry(.1,6,6),n=new e.MeshStandardMaterial({color:16777215,transparent:!0,opacity:.6,roughness:.3,metalness:.3});for(let a=0;a<o;a++){const i=new e.Mesh(s,n);i.position.set((Math.random()-.5)*1.5,Math.random()*3,(Math.random()-.5)*1.5),t.push(i),this.add(i)}function c(){t.forEach(a=>{a.position.y+=.02,a.position.y>3&&(a.position.y=0,a.position.x=(Math.random()-.5)*1.5,a.position.z=(Math.random()-.5)*1.5)})}function r(){requestAnimationFrame(r),c()}r()}}class Se extends e.BufferGeometry{constructor(t=2,o=.3,s=.6,n=5,c=5,r=Math.PI/4){super();const a=[],i=[];for(let y=0;y<n;y++){const f=y*o,p=f+o,M=y*s,w=M+s;a.push(-t/2,f,M,t/2,f,M,t/2,p,M,-t/2,p,M,-t/2,p,M,t/2,p,M,t/2,p,w,-t/2,p,w);const x=y*8;i.push(x,x+1,x+2,x,x+2,x+3),i.push(x+4,x+5,x+6,x+4,x+6,x+7)}const l=n*o,h=n*s,u=t*2;a.push(-u/2,l,h,u/2,l,h,u/2,l,h+s,-u/2,l,h+s);const d=n*8;i.push(d,d+1,d+2,d,d+2,d+3);for(let y=0;y<2;y++){const f=y===0?1:-1;for(let p=0;p<c;p++){const M=l+p*o,w=M+o,x=f*(u/4),v=h+s,k=p*s*Math.cos(r),b=p*s*Math.sin(r),B=x+f*k-t/2*Math.cos(r),A=x+f*k+t/2*Math.cos(r),P=v+b,ie=B+f*s*Math.cos(r),le=A+f*s*Math.cos(r),N=P+s*Math.sin(r);a.push(B,M,P,A,M,P,A,w,P,B,w,P,B,w,P,A,w,P,le,w,N,ie,w,N);const S=d+4+y*c*8+p*8;i.push(S,S+1,S+2,S,S+2,S+3),i.push(S+4,S+5,S+6,S+4,S+6,S+7)}}this.setIndex(i),this.setAttribute("position",new e.Float32BufferAttribute(a,3)),this.computeVertexNormals()}}class ve extends e.BufferGeometry{constructor(t=5,o=3,s=5,n=.2){super();const c=[-t/2,0,-s/2,t/2,0,-s/2,t/2,0,s/2,-t/2,0,s/2,-t/2,0,-s/2,t/2,0,-s/2,t/2,o,-s/2,-t/2,o,-s/2,-t/2,0,-s/2,-t/2,0,s/2,-t/2,o,s/2,-t/2,o,-s/2],r=[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11];this.setIndex(r),this.setAttribute("position",new e.Float32BufferAttribute(c,3)),this.computeVertexNormals()}}class ge extends e.BufferGeometry{constructor(t=2,o=.3,s=.5,n=5,c=2){super();const r=[],a=[];for(let u=0;u<n;u++){const d=u*o,y=d+o,f=u*s,p=f+s;r.push(-t/2,d,f,t/2,d,f,t/2,y,f,-t/2,y,f,-t/2,y,f,t/2,y,f,t/2,y,p,-t/2,y,p);const M=u*8;a.push(M,M+1,M+2,M,M+2,M+3),a.push(M+4,M+5,M+6,M+4,M+6,M+7)}const i=n*o,l=n*s;r.push(-t/2,i,l,t/2,i,l,t/2,i,l+c,-t/2,i,l+c);const h=n*8;a.push(h,h+1,h+2,h,h+2,h+3);for(let u=0;u<n;u++){const d=i+u*o,y=d+o,f=-t/2-u*s,p=f-s;r.push(f,d,l+c,f,d,l+c-t,f,y,l+c-t,f,y,l+c,f,y,l+c,f,y,l+c-t,p,y,l+c-t,p,y,l+c);const M=h+4+u*8;a.push(M,M+1,M+2,M,M+2,M+3),a.push(M+4,M+5,M+6,M+4,M+6,M+7)}this.setIndex(a),this.setAttribute("position",new e.Float32BufferAttribute(r,3)),this.computeVertexNormals()}}class be extends e.BufferGeometry{constructor(t=1,o=.4,s=.2,n=20,c=2,r=Math.PI/8){super();const a=[],i=[];let l=0;for(let h=0;h<n;h++){const u=c*Math.cos(l),d=c*Math.sin(l),y=h*s,f=y+s;a.push(u-t/2*Math.cos(l),y,d-t/2*Math.sin(l),u+t/2*Math.cos(l),y,d+t/2*Math.sin(l),u+t/2*Math.cos(l),f,d+t/2*Math.sin(l),u-t/2*Math.cos(l),f,d-t/2*Math.sin(l)),a.push(u-t/2*Math.cos(l),f,d-t/2*Math.sin(l),u+t/2*Math.cos(l),f,d+t/2*Math.sin(l),u+t/2*Math.cos(l)-o*Math.sin(l),f,d+t/2*Math.sin(l)+o*Math.cos(l),u-t/2*Math.cos(l)-o*Math.sin(l),f,d-t/2*Math.sin(l)+o*Math.cos(l));const p=h*8;i.push(p,p+1,p+2,p,p+2,p+3),i.push(p+4,p+5,p+6,p+4,p+6,p+7),l+=r}this.setIndex(i),this.setAttribute("position",new e.Float32BufferAttribute(a,3)),this.computeVertexNormals()}}class Be extends e.BufferGeometry{constructor(t=2,o=.3,s=.5,n=10){super();const c=[],r=[];for(let a=0;a<n;a++){const i=a*o,l=i+o,h=a*s,u=h+s;c.push(-t/2,i,h,t/2,i,h,t/2,l,h,-t/2,l,h,-t/2,l,h,t/2,l,h,t/2,l,u,-t/2,l,u);const d=a*8;r.push(d,d+1,d+2,d,d+2,d+3),r.push(d+4,d+6,d+5,d+4,d+7,d+6)}this.setIndex(r),this.setAttribute("position",new e.Float32BufferAttribute(c,3)),this.computeVertexNormals()}}class L extends e.BufferGeometry{constructor(t=1,o=1.5,s=.5,n=.05,c=.05){super();const r=t,a=o,i=s,l=n,h=c,u=[0,0,0,r,0,0,r,a,0,0,a,0,r,0,-i,0,0,-i,0,a,-i,r,a,-i,0,0,-i,0,0,0,0,a,0,0,a,-i,r,0,-l,l,0,-l,l,a,-l,r,a,-l,l,0,-i+l,r,0,-i+l,r,a,-i+l,l,a,-i+l,l,0,-l,l,0,-i+l,l,a,-i+l,l,a,-l,0,a,0,r,a,0,r,a,-l,l,a,-l,0,a,-i,l,a,-i+l,r,a,-i+l,r,a,-i,0,a,0,l,a,-l,l,a,-i+l,0,a,-i,0,0,0,l,0,-l,r,0,-l,r,0,0,0,0,-i,r,0,-i,r,0,-i+l,l,0,-i+l,0,0,0,0,0,-i,l,0,-i+l,l,0,-l,r,0,0,r,0,-l,r,a,-l,r,a,0,r,0,-i,r,a,-i,r,a,-i+l,r,0,-i+l],d=[0,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,-1,0,0,-1,0,0,-1,0,0,-1,0,0,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0],y=t/(t*2+s),f=(t+s)/(t*2+s),p=[f,0,1,0,1,1,f,1,0,0,y,0,y,1,0,1,y,0,f,0,f,1,y,1,1,0,f,0,f,1,1,1,y,0,0,0,0,1,y,1,f,0,y,0,y,1,f,1,f,0,1,0,1,1,f,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1],M=[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23,24,25,26,24,26,27,28,29,30,28,30,31,32,33,34,32,34,35,36,37,38,36,38,39,40,41,42,40,42,43,44,45,46,44,46,47,48,49,50,48,50,51,52,53,54,52,54,55],w=new Float32Array(u),x=new Float32Array(d),v=new Float32Array(p),k=new Uint16Array(M),b=new e.BufferGeometry;b.setAttribute("position",new e.BufferAttribute(w,3)),b.setAttribute("normal",new e.BufferAttribute(x,3)),b.setAttribute("uv",new e.BufferAttribute(v,2)),b.setIndex(new e.BufferAttribute(k,1));const B=new e.BoxGeometry(t-l-h,a-h*2,i-l*2);B.translate((t-l-h)/2+l,a/2,-i/2),this.copy(G.mergeGeometries([b,B],!0))}}class z extends e.BufferGeometry{constructor(t=.4,o=1.2,s=.2){super();const n=o*.6,c=new e.BoxGeometry(t/2,n,s);c.translate(0,n/2,0);const r=t*1.5,a=new e.BoxGeometry(r,t/4,s);a.translate(0,n*.75,0),this.copy(G.mergeGeometries([c,a],!1)),this.computeVertexNormals()}}class _ extends e.BufferGeometry{constructor(t=1.75,o=.75){super();const s=t*.05,n=t*.15,c=t*.15,r=t*.75;let a=0;const i=new e.BoxGeometry(o,s,o);i.translate(0,a+s/2,0),a+=s;const l=new e.BoxGeometry(o*.8,n,o*.8);l.translate(0,a+n/2,0),a+=n;const h=new e.BoxGeometry(o*.6,c,o*.6);h.translate(0,a+c/2,0),a+=c;const u=new e.BoxGeometry(o*.4,r,o*.4);u.translate(0,a+r/2,0),a+=r;const d=new e.ConeGeometry(o*.4/Math.sqrt(2),.1,4,1,!1,Math.PI/4);d.translate(0,a+.1/2,0),this.copy(G.mergeGeometries([i,l,h,u,d],!1)),this.computeVertexNormals()}}class q extends e.BufferGeometry{constructor(t=.6,o=1,s=.2,n=.6){super();const c=o-n/2,r=new e.BoxGeometry(t,c,s);r.translate(0,c/2,0);const a=new e.CylinderGeometry(n/2,n/2,s,16,1,!1,0,Math.PI);a.rotateY(Math.PI/2),a.rotateX(Math.PI/2),a.translate(0,c,0),this.copy(G.mergeGeometries([r,a],!1)),this.computeVertexNormals()}}class O extends e.BufferGeometry{constructor(t=.5,o=.8,s=.15){super();const n=new e.BoxGeometry(t,o,s);n.translate(0,o/2,0),this.copy(n)}}class D extends e.BufferGeometry{constructor({height:t=2.25}={}){super();const o=new e.BoxGeometry(1.2,.5,1.2);o.translate(0,.25,0);const s=new e.BoxGeometry(1,t,1);s.translate(0,.5+t/2,0);const n=new e.BoxGeometry(1.4,.3,1.4);n.translate(0,.5+t+.15,0),this.copy(G.mergeGeometries([o,s,n],!1))}}class E extends e.BufferGeometry{constructor({barHeight:t=2,barRadius:o=.05,spikeHeight:s=.3,spikeRadius:n=.075,spikeScaleZ:c=1,radialSegments:r=8}={}){super();const a=new e.CylinderGeometry(o,o,t,r);a.translate(0,t/2,0);const i=new e.ConeGeometry(n,s,r);i.translate(0,t+s/2,0),i.scale(1,1,c),this.copy(G.mergeGeometries([a,i],!1))}}class H extends e.BufferGeometry{constructor({count:t=20,spacing:o=.4,barHeight:s=2,barRadius:n=.05,spikeHeight:c=.3,spikeRadius:r=.075,spikeScaleZ:a=1,railHeight:i=.1,railDepth:l=.05,railOffset:h=0,radialSegments:u=8}={}){super();const d=[],y=new E({barHeight:s,barRadius:n,spikeHeight:c,spikeRadius:r,spikeScaleZ:a,radialSegments:u}),f=new e.BoxGeometry(t*o,i,l);for(let w=0;w<t;w++){const x=y.clone();x.translate(w*o,0,0),d.push(x)}const p=f.clone();p.translate(o*(t-1)/2,s-h-i/2,0),d.push(p);const M=f.clone();M.translate(o*(t-1)/2,i/2,0),d.push(M),this.copy(G.mergeGeometries(d))}}class X extends e.BufferGeometry{constructor({width:t=5,height:o=8,depth:s=1,shelves:n=4,frameThickness:c=.1}={}){super();const r=o,a=t,i=s,l=new e.BoxGeometry(c,r,i),h=new e.BoxGeometry(a-2*c,c,i),u=l.clone();u.translate(-a/2+c/2,r/2,0);const d=l.clone();d.translate(a/2-c/2,r/2,0);const y=h.clone();y.translate(0,r-c/2,0);const f=h.clone();f.translate(0,c/2,0);const p=new e.BoxGeometry(a,r,c);p.translate(0,r/2,-i/2+c/2);const M=[],w=(r-c)/(n+1);for(let x=1;x<=n;x++){const v=h.clone();v.translate(0,c/2+x*w,0),M.push(v)}this.copy(G.mergeGeometries([u,d,y,f,p,...M],!1))}}class Pe extends e.BufferGeometry{constructor(t=.1){super();const o=[],s=[],n=[[0,1],[.5,.75],[.75,.25],[.5,-.5],[0,-1],[-.5,-.5],[-.75,.25],[-.5,.75]];for(let r=0;r<n.length;r++){const[a,i]=n[r];o.push(a*t,i*t,0)}for(let r=1;r<n.length-1;r++)s.push(0,r,r+1);s.push(0,n.length-1,1);const c=new e.Float32BufferAttribute(o,3);this.setAttribute("position",c),this.setIndex(s),this.computeVertexNormals()}}function Y(m,t=g.XYZ,o=.5,s=2){m.deleteAttribute("uv"),m.deleteAttribute("normal"),m=G.mergeVertices(m),m.computeVertexNormals();const n=m.getAttribute("position");for(let c=0;c<n.count;c++){const r=new e.Vector3().fromBufferAttribute(n,c),a=Math.random()*(s-o)+o,i=t.clone().multiplyScalar(a);r.add(i),n.setXYZ(c,r.x,r.y,r.z)}return n.needsUpdate=!0,m.computeVertexNormals(),m}class Z extends e.BufferGeometry{constructor(t=1,o=4,s=4){super();const n=new e.SphereGeometry(t,o,s);this.copy(Y(n,g.XYZ,.5,1)),this.computeVertexNormals(),this.center()}}class R extends e.BufferGeometry{constructor(t=.1,o=.1,s=.4,n=8){super();const c=new e.CylinderGeometry(t*.6,o*.6,s,n);c.translate(0,0,0);const r=new e.SphereGeometry(t,n,n),a=r.clone(),i=r.clone(),l=r.clone(),h=r.clone();a.translate(0,s/2+t*.6,-t*.6),i.translate(0,s/2+t*.6,t*.6),l.translate(0,-s/2-o*.6,-o*.6),h.translate(0,-s/2-o*.6,o*.6),this.copy(G.mergeGeometries([c,a,i,l,h],!1))}}class j extends e.BufferGeometry{constructor(){super();const t=new e.SphereGeometry(1,16,16),o=new e.CylinderGeometry(.2,.2,2,16,1,!0);o.translate(0,1.5,0),o.rotateX(Math.PI/2),this.copy(G.mergeGeometries([t,o],!1))}}class Q extends e.BufferGeometry{constructor({flaskRadius:t=1,neckRadius:o=.3,height:s=2.5,neckHeight:n=1,radialSegments:c=16}={}){super();const r=[new e.Vector2(0,0),new e.Vector2(t*.875,0),new e.Vector2(t,.1),new e.Vector2(o,s),new e.Vector2(o,s+n),new e.Vector2(o*1.1,s+n+.3)],a=new e.LatheGeometry(r,c);this.copy(G.mergeGeometries([a],!1))}}class K extends e.BufferGeometry{constructor(){super();const t=[new e.Vector2(1,0),new e.Vector2(1.2,.5),new e.Vector2(1.4,1.5),new e.Vector2(1.3,1.8),new e.Vector2(.8,1.8)],o=new e.LatheGeometry(t,12),s=new e.CircleGeometry(1,12);s.rotateX(-Math.PI/2),s.translate(0,0,0),this.copy(G.mergeGeometries([o,s],!1))}}class J extends e.BufferGeometry{constructor({radius:t=.3,height:o=.4,count:s=3,thickness:n=.03,radialSegments:c=16}={}){super();const r=new e.TorusGeometry(t,n,8,c);r.rotateX(Math.PI/2),r.translate(0,o,0);const a=new e.CylinderGeometry(n*.6,n*.6,o,c),i=[];for(let l=0;l<s;l++){const h=l/s*Math.PI*2,u=a.clone();u.translate(Math.cos(h)*t,o/2,Math.sin(h)*t),i.push(u)}this.copy(G.mergeGeometries([r,...i],!1))}}class T extends e.BufferGeometry{constructor(t=.2,o=.2,s=3,n=32,c=!0){super();const r=new e.CylinderGeometry(t,o,s,n,1,c),a=new e.SphereGeometry(o,n,n/2,0,Math.PI*2,Math.PI/2,Math.PI/2);a.translate(0,-(s/2),0),this.copy(G.mergeGeometries([r,a],!1))}}class $ extends e.BufferGeometry{constructor({radius:t=.5,neckRadius:o=.2,height:s=3,neckHeight:n=1,segments:c=16}={}){super();const r=s-n,a=new e.CylinderGeometry(t,t,r,c);a.translate(0,r/2,0);const i=.3,l=new e.CylinderGeometry(o,t,i,c);l.translate(0,r+i/2,0);const h=new e.CylinderGeometry(o,o,n,c);h.translate(0,r+i+n/2,0),this.copy(G.mergeGeometries([a,l,h],!1))}}class W extends e.BufferGeometry{constructor({radius:t=3,height:o=.6,widthSegments:s=64,heightSegments:n=16,phiStart:c=0,phiLength:r=Math.PI*2}={}){super(),this.copy(new e.SphereGeometry(t,s,n,c,r,0,Math.PI/2)),this.scale(1,o/t,1)}}const Ie=(m,t)=>m/(1-Math.cos(t)),F=(m,t)=>m/(2*Math.sin(t)),ee=(m,t)=>m*(1-Math.cos(t)),ke=(m,t)=>2*m*Math.sin(t);class te extends e.BufferGeometry{constructor({radius:t=F(5,Math.PI/10),widthSegments:o=64,heightSegments:s=32,phiStart:n=0,phiLength:c=Math.PI*2,thetaLength:r=Math.PI/10}={}){super(),this.copy(new e.SphereGeometry(t,o,s,n,c,0,r));const a=ee(t,r);this.translate(0,-t+a,0)}}class oe extends e.BufferGeometry{constructor({trunkRadiusTop:t=.25,trunkRadiusBottom:o=.4,trunkHeight:s=2.5,trunkSegments:n=14,leafSize:c=.8,leafCount:r=6,leafDetail:a=0,leafSpreadRadius:i=1.5}={}){super();const l=new e.CylinderGeometry(t,o,s,n);l.translate(0,s/2,0);const h=[];for(let u=0;u<r;u++){const d=new e.DodecahedronGeometry(c,a);d.translate((Math.random()-.5)*i,(Math.random()-.5)*c+s,(Math.random()-.5)*i),h.push(d)}this.copy(G.mergeGeometries([l.toNonIndexed(),G.mergeGeometries(h,!1)],!0)),this.computeVertexNormals()}}class Ae extends e.Group{constructor(){super();const t=new e.SphereGeometry(5,32,32),o=new e.ShaderMaterial({uniforms:{time:{value:0}},vertexShader:`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("three"),G=require("three/addons/utils/BufferGeometryUtils.js"),Xe=require("three/addons/objects/Sky.js"),He=require("three/addons/postprocessing/EffectComposer.js"),U=require("three/addons/postprocessing/RenderPass.js"),Ze=require("three/addons/postprocessing/ShaderPass.js"),g={UP:new e.Vector3(0,1,0),DOWN:new e.Vector3(0,-1,0),LEFT:new e.Vector3(-1,0,0),RIGHT:new e.Vector3(1,0,0),FORWARD:new e.Vector3(0,0,1),BACKWARD:new e.Vector3(0,0,-1),X:new e.Vector3(1,0,0),Y:new e.Vector3(0,1,0),Z:new e.Vector3(0,0,1),XY:new e.Vector3(1,1,0).normalize(),XZ:new e.Vector3(1,0,1).normalize(),YZ:new e.Vector3(0,1,1).normalize(),XYZ:new e.Vector3(1,1,1).normalize()},P={LINEAR:(s,t)=>1-s/t,QUADRATIC:(s,t)=>Math.pow(1-s/t,2),SQUARE_ROOT:(s,t)=>Math.pow(1-s/t,.5),LOGARITHMIC:(s,t)=>Math.log(1+(t-s))/Math.log(1+t),SINE:(s,t)=>Math.cos(s/t*Math.PI/2),EXPONENTIAL:(s,t)=>Math.exp(-s/t),CUBIC:(s,t)=>Math.pow(1-s/t,3),GAUSSIAN:(s,t)=>Math.exp(-Math.pow(s,2)/(2*Math.pow(t/3,2))),INVERSE:(s,t)=>t/(t+s),SMOOTHSTEP:(s,t)=>{const o=Math.max(0,Math.min(1,1-s/t));return o*o*(3-2*o)}},Ye=(s,t,o,n,a=g.UP,i=P.LINEAR)=>{const r=s.attributes.position;for(let c=0;c<r.count;c++){const l=new e.Vector3;l.fromBufferAttribute(r,c);const m=l.distanceTo(t);if(m<o){const h=i(m,o)*n;l.add(a.clone().multiplyScalar(h)),r.setXYZ(c,l.x,l.y,l.z)}}r.needsUpdate=!0},Qe=(s,t,o,n,a,i=g.UP,r=P.LINEAR)=>{const c=s.attributes.position;for(let l=0;l<c.count;l++){const m=new e.Vector3;m.fromBufferAttribute(c,l);const u=m.distanceTo(t);if(u<o){const d=r(u,o)*a,f=m.dot(i.normalize()),M=n-f;m.add(i.clone().multiplyScalar(M*d)),c.setXYZ(l,m.x,m.y,m.z)}}c.needsUpdate=!0},je=(s,t,o,n,a=g.UP,i=P.LINEAR)=>{const r=s.attributes.position;for(let c=0;c<r.count;c++){const l=new e.Vector3;l.fromBufferAttribute(r,c);const m=l.distanceTo(t);if(m<o){const u=i(m,o),h=n*u,d=a.clone().normalize();l.x+=e.MathUtils.randFloatSpread(h)*d.x,l.y+=e.MathUtils.randFloatSpread(h)*d.y,l.z+=e.MathUtils.randFloatSpread(h)*d.z,r.setXYZ(c,l.x,l.y,l.z)}}r.needsUpdate=!0},Ke=(s,t,o,n)=>{const a=s.attributes.position,i=new e.Vector3;for(let r=0;r<a.count;r++){const c=new e.Vector3;if(c.fromBufferAttribute(a,r),c.distanceTo(t)<o){let m=new e.Vector3,u=0;for(let h=0;h<a.count;h++)i.fromBufferAttribute(a,h),i.distanceTo(c)<o&&(m.add(i),u++);u>0&&(m.divideScalar(u),c.lerp(m,n),a.setXYZ(r,c.x,c.y,c.z))}}a.needsUpdate=!0},Je=(s,t,o,n,a=!1,i=P.LINEAR)=>{const r=s.attributes.position;for(let c=0;c<r.count;c++){const l=new e.Vector3;l.fromBufferAttribute(r,c);const m=l.distanceTo(t);if(m<o){const h=i(m,o)*n*(a?-1:1),d=l.clone().sub(t).normalize();l.add(d.multiplyScalar(h)),r.setXYZ(c,l.x,l.y,l.z)}}r.needsUpdate=!0},$e=(s,t,o,n,a=g.UP,i=P.LINEAR)=>{const r=s.attributes.position,c=new e.Quaternion;for(let l=0;l<r.count;l++){const m=new e.Vector3;m.fromBufferAttribute(r,l);const u=m.distanceTo(t);if(u<o){const d=i(u,o)*n;c.setFromAxisAngle(a,d),m.sub(t).applyQuaternion(c).add(t),r.setXYZ(l,m.x,m.y,m.z)}}r.needsUpdate=!0},q=s=>1-Math.cos(s*Math.PI/2),L=s=>Math.sin(s*Math.PI/2),z=s=>-.5*(Math.cos(Math.PI*s)-1),R=s=>s*s,D=s=>1-Math.pow(1-s,2),X=s=>s<.5?2*s*s:1-Math.pow(-2*s+2,2)/2,H=s=>s*s*s,Z=s=>1-Math.pow(1-s,3),Y=s=>s<.5?4*s*s*s:1-Math.pow(-2*s+2,3)/2,Q=s=>s*s*s*s,j=s=>1-Math.pow(1-s,4),K=s=>s<.5?8*s*s*s*s:1-Math.pow(-2*s+2,4)/2,J=s=>s*s*s*s*s,$=s=>1-Math.pow(1-s,5),W=s=>s<.5?16*s*s*s*s*s:1-Math.pow(-2*s+2,5)/2,ee=s=>s===0?0:Math.pow(2,10*s-10),te=s=>s===1?1:1-Math.pow(2,-10*s),oe=s=>s===0?0:s===1?1:s<.5?Math.pow(2,20*s-10)/2:(2-Math.pow(2,-20*s+10))/2,se=s=>1-Math.sqrt(1-Math.pow(s,2)),ne=s=>Math.sqrt(1-Math.pow(s-1,2)),re=s=>s<.5?(1-Math.sqrt(1-Math.pow(2*s,2)))/2:(Math.sqrt(1-Math.pow(-2*s+2,2))+1)/2,ae=s=>s,ce=s=>s*s*(3-2*s),ie=s=>1-Math.pow(1-s,.3),le=s=>Math.pow(s,.3),me=s=>Math.log(Math.max(.01,s))/Math.log(2),ue=s=>Math.sqrt(s),he=s=>1-s,de=s=>Math.exp(-Math.pow(s-.5,2)/(2*.5)),We={SINE_EASE_IN:q,SINE_EASE_OUT:L,SINE_EASE_IN_OUT:z,QUADRATIC_EASE_IN:R,QUADRATIC_EASE_OUT:D,QUADRATIC_EASE_IN_OUT:X,CUBIC_EASE_IN:H,CUBIC_EASE_OUT:Z,CUBIC_EASE_IN_OUT:Y,QUARTIC_EASE_IN:Q,QUARTIC_EASE_OUT:j,QUARTIC_EASE_IN_OUT:K,QUINTIC_EASE_IN:J,QUINTIC_EASE_OUT:$,QUINTIC_EASE_IN_OUT:W,EXPONENTIAL_EASE_IN:ee,EXPONENTIAL_EASE_OUT:te,EXPONENTIAL_EASE_IN_OUT:oe,CIRCULAR_EASE_IN:se,CIRCULAR_EASE_OUT:ne,CIRCULAR_EASE_IN_OUT:re,LINEAR:ae,SMOOTHSTEP:ce,CONCAVE:ie,CONVEX:le,LOGARITHMIC:me,SQUARE_ROOT:ue,INVERSE:he,GAUSSIAN:de};class et extends e.Group{constructor(){super();const t=[],o=20,n=new e.SphereGeometry(.1,6,6),a=new e.MeshStandardMaterial({color:16777215,transparent:!0,opacity:.6,roughness:.3,metalness:.3});for(let c=0;c<o;c++){const l=new e.Mesh(n,a);l.position.set((Math.random()-.5)*1.5,Math.random()*3,(Math.random()-.5)*1.5),t.push(l),this.add(l)}function i(){t.forEach(c=>{c.position.y+=.02,c.position.y>3&&(c.position.y=0,c.position.x=(Math.random()-.5)*1.5,c.position.z=(Math.random()-.5)*1.5)})}function r(){requestAnimationFrame(r),i()}r()}}class V extends e.BufferGeometry{constructor(t=1,o=1.5,n=.5,a=.05,i=.05){super();const r=t,c=o,l=n,m=a,u=i,h=[0,0,0,r,0,0,r,c,0,0,c,0,r,0,-l,0,0,-l,0,c,-l,r,c,-l,0,0,-l,0,0,0,0,c,0,0,c,-l,r,0,-m,m,0,-m,m,c,-m,r,c,-m,m,0,-l+m,r,0,-l+m,r,c,-l+m,m,c,-l+m,m,0,-m,m,0,-l+m,m,c,-l+m,m,c,-m,0,c,0,r,c,0,r,c,-m,m,c,-m,0,c,-l,m,c,-l+m,r,c,-l+m,r,c,-l,0,c,0,m,c,-m,m,c,-l+m,0,c,-l,0,0,0,m,0,-m,r,0,-m,r,0,0,0,0,-l,r,0,-l,r,0,-l+m,m,0,-l+m,0,0,0,0,0,-l,m,0,-l+m,m,0,-m,r,0,0,r,0,-m,r,c,-m,r,c,0,r,0,-l,r,c,-l,r,c,-l+m,r,0,-l+m],d=[0,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,-1,0,0,-1,0,0,-1,0,0,-1,0,0,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,1,0,0,1,0,0,1,0,0,1,1,0,0,1,0,0,1,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,0,-1,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0,1,0,0],f=t/(t*2+n),M=(t+n)/(t*2+n),p=[M,0,1,0,1,1,M,1,0,0,f,0,f,1,0,1,f,0,M,0,M,1,f,1,1,0,M,0,M,1,1,1,f,0,0,0,0,1,f,1,M,0,f,0,f,1,M,1,M,0,1,0,1,1,M,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1,0,0,1,0,1,1,0,1],y=[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11,12,13,14,12,14,15,16,17,18,16,18,19,20,21,22,20,22,23,24,25,26,24,26,27,28,29,30,28,30,31,32,33,34,32,34,35,36,37,38,36,38,39,40,41,42,40,42,43,44,45,46,44,46,47,48,49,50,48,50,51,52,53,54,52,54,55],w=new Float32Array(h),x=new Float32Array(d),v=new Float32Array(p),b=new Uint16Array(y),B=new e.BufferGeometry;B.setAttribute("position",new e.BufferAttribute(w,3)),B.setAttribute("normal",new e.BufferAttribute(x,3)),B.setAttribute("uv",new e.BufferAttribute(v,2)),B.setIndex(new e.BufferAttribute(b,1));const I=new e.BoxGeometry(t-m-u,c-u*2,l-m*2);I.translate((t-m-u)/2+m,c/2,-l/2),this.copy(G.mergeGeometries([B,I],!0))}}function Me(s=0,t=1){return Math.random()*(t-s)+s}function tt(s=0,t=1){return Math.floor(Math.random()*(t-s+1))+s}function fe(s=.5,t=0,o=1){return t+(o-t)*Math.pow(Math.random(),s)}function ye(s=.5,t=0,o=1){return t+(o-t)*Math.pow(1-Math.random(),s)}function pe({scaleXMin:s=.4,scaleXMax:t=.7,scaleYMin:o=.3,scaleYMax:n=.95,scaleZMin:a=.1,scaleZMax:i=.5}={}){return new e.Vector3(Me(s,t),fe(.25,o,n),ye(.8,a,i))}function O({coverMaterial:s,pagesMaterial:t,scales:o=[]}={}){const n=new V,a=new e.InstancedMesh(n,[s,t],o.length),i=new e.Matrix4;let r=0;for(let c=0;c<o.length;c++){const l=o[c],m=new e.Matrix4;m.makeScale(l.x,l.y,l.z),i.identity(),i.multiply(m),i.setPosition(.01+Math.random()*.1,0,r+l.z*.5),a.setMatrixAt(c,i),r+=l.z*.5}return a}function ot({coverMaterial:s,pagesMaterial:t,count:o=10,scaleXMin:n=.4,scaleXMax:a=.7,scaleYMin:i=.3,scaleYMax:r=.95,scaleZMin:c=.1,scaleZMax:l=.5}={}){const m=Array.from({length:o},()=>pe({scaleXMin:n,scaleXMax:a,scaleYMin:i,scaleYMax:r,scaleZMin:c,scaleZMax:l}));return O({coverMaterial:s,pagesMaterial:t,scales:m})}function st({coverMaterial:s,pagesMaterial:t,length:o=10,scaleXMin:n=.4,scaleXMax:a=.7,scaleYMin:i=.3,scaleYMax:r=.95,scaleZMin:c=.1,scaleZMax:l=.5}={}){const m=[];let u=o;for(;u>0;){const h=pe({scaleXMin:n,scaleXMax:a,scaleYMin:i,scaleYMax:r,scaleZMin:c,scaleZMax:l});h.z=Math.min(h.z,u),m.push(h),u-=h.z}return O({coverMaterial:s,pagesMaterial:t,scales:m})}class nt extends e.BufferGeometry{constructor(t=2,o=.3,n=.6,a=5,i=5,r=Math.PI/4){super();const c=[],l=[];for(let f=0;f<a;f++){const M=f*o,p=M+o,y=f*n,w=y+n;c.push(-t/2,M,y,t/2,M,y,t/2,p,y,-t/2,p,y,-t/2,p,y,t/2,p,y,t/2,p,w,-t/2,p,w);const x=f*8;l.push(x,x+1,x+2,x,x+2,x+3),l.push(x+4,x+5,x+6,x+4,x+6,x+7)}const m=a*o,u=a*n,h=t*2;c.push(-h/2,m,u,h/2,m,u,h/2,m,u+n,-h/2,m,u+n);const d=a*8;l.push(d,d+1,d+2,d,d+2,d+3);for(let f=0;f<2;f++){const M=f===0?1:-1;for(let p=0;p<i;p++){const y=m+p*o,w=y+o,x=M*(h/4),v=u+n,b=p*n*Math.cos(r),B=p*n*Math.sin(r),I=x+M*b-t/2*Math.cos(r),C=x+M*b+t/2*Math.cos(r),E=v+B,Re=I+M*n*Math.cos(r),De=C+M*n*Math.cos(r),_=E+n*Math.sin(r);c.push(I,y,E,C,y,E,C,w,E,I,w,E,I,w,E,C,w,E,De,w,_,Re,w,_);const S=d+4+f*i*8+p*8;l.push(S,S+1,S+2,S,S+2,S+3),l.push(S+4,S+5,S+6,S+4,S+6,S+7)}}this.setIndex(l),this.setAttribute("position",new e.Float32BufferAttribute(c,3)),this.computeVertexNormals()}}class rt extends e.BufferGeometry{constructor(t=5,o=3,n=5,a=.2){super();const i=[-t/2,0,-n/2,t/2,0,-n/2,t/2,0,n/2,-t/2,0,n/2,-t/2,0,-n/2,t/2,0,-n/2,t/2,o,-n/2,-t/2,o,-n/2,-t/2,0,-n/2,-t/2,0,n/2,-t/2,o,n/2,-t/2,o,-n/2],r=[0,1,2,0,2,3,4,5,6,4,6,7,8,9,10,8,10,11];this.setIndex(r),this.setAttribute("position",new e.Float32BufferAttribute(i,3)),this.computeVertexNormals()}}class at extends e.BufferGeometry{constructor(t=2,o=.3,n=.5,a=5,i=2){super();const r=[],c=[];for(let h=0;h<a;h++){const d=h*o,f=d+o,M=h*n,p=M+n;r.push(-t/2,d,M,t/2,d,M,t/2,f,M,-t/2,f,M,-t/2,f,M,t/2,f,M,t/2,f,p,-t/2,f,p);const y=h*8;c.push(y,y+1,y+2,y,y+2,y+3),c.push(y+4,y+5,y+6,y+4,y+6,y+7)}const l=a*o,m=a*n;r.push(-t/2,l,m,t/2,l,m,t/2,l,m+i,-t/2,l,m+i);const u=a*8;c.push(u,u+1,u+2,u,u+2,u+3);for(let h=0;h<a;h++){const d=l+h*o,f=d+o,M=-t/2-h*n,p=M-n;r.push(M,d,m+i,M,d,m+i-t,M,f,m+i-t,M,f,m+i,M,f,m+i,M,f,m+i-t,p,f,m+i-t,p,f,m+i);const y=u+4+h*8;c.push(y,y+1,y+2,y,y+2,y+3),c.push(y+4,y+5,y+6,y+4,y+6,y+7)}this.setIndex(c),this.setAttribute("position",new e.Float32BufferAttribute(r,3)),this.computeVertexNormals()}}class ct extends e.BufferGeometry{constructor(t=1,o=.4,n=.2,a=20,i=2,r=Math.PI/8){super();const c=[],l=[];let m=0;for(let u=0;u<a;u++){const h=i*Math.cos(m),d=i*Math.sin(m),f=u*n,M=f+n;c.push(h-t/2*Math.cos(m),f,d-t/2*Math.sin(m),h+t/2*Math.cos(m),f,d+t/2*Math.sin(m),h+t/2*Math.cos(m),M,d+t/2*Math.sin(m),h-t/2*Math.cos(m),M,d-t/2*Math.sin(m)),c.push(h-t/2*Math.cos(m),M,d-t/2*Math.sin(m),h+t/2*Math.cos(m),M,d+t/2*Math.sin(m),h+t/2*Math.cos(m)-o*Math.sin(m),M,d+t/2*Math.sin(m)+o*Math.cos(m),h-t/2*Math.cos(m)-o*Math.sin(m),M,d-t/2*Math.sin(m)+o*Math.cos(m));const p=u*8;l.push(p,p+1,p+2,p,p+2,p+3),l.push(p+4,p+5,p+6,p+4,p+6,p+7),m+=r}this.setIndex(l),this.setAttribute("position",new e.Float32BufferAttribute(c,3)),this.computeVertexNormals()}}class it extends e.BufferGeometry{constructor(t=2,o=.3,n=.5,a=10){super();const i=[],r=[];for(let c=0;c<a;c++){const l=c*o,m=l+o,u=c*n,h=u+n;i.push(-t/2,l,u,t/2,l,u,t/2,m,u,-t/2,m,u,-t/2,m,u,t/2,m,u,t/2,m,h,-t/2,m,h);const d=c*8;r.push(d,d+1,d+2,d,d+2,d+3),r.push(d+4,d+6,d+5,d+4,d+7,d+6)}this.setIndex(r),this.setAttribute("position",new e.Float32BufferAttribute(i,3)),this.computeVertexNormals()}}class we extends e.BufferGeometry{constructor(t=.4,o=1.2,n=.2){super();const a=o*.6,i=new e.BoxGeometry(t/2,a,n);i.translate(0,a/2,0);const r=t*1.5,c=new e.BoxGeometry(r,t/4,n);c.translate(0,a*.75,0),this.copy(G.mergeGeometries([i,c],!1)),this.computeVertexNormals()}}class xe extends e.BufferGeometry{constructor(t=1.75,o=.75){super();const n=t*.05,a=t*.15,i=t*.15,r=t*.75;let c=0;const l=new e.BoxGeometry(o,n,o);l.translate(0,c+n/2,0),c+=n;const m=new e.BoxGeometry(o*.8,a,o*.8);m.translate(0,c+a/2,0),c+=a;const u=new e.BoxGeometry(o*.6,i,o*.6);u.translate(0,c+i/2,0),c+=i;const h=new e.BoxGeometry(o*.4,r,o*.4);h.translate(0,c+r/2,0),c+=r;const d=new e.ConeGeometry(o*.4/Math.sqrt(2),.1,4,1,!1,Math.PI/4);d.translate(0,c+.1/2,0),this.copy(G.mergeGeometries([l,m,u,h,d],!1)),this.computeVertexNormals()}}class Ge extends e.BufferGeometry{constructor(t=.6,o=1,n=.2,a=.6){super();const i=o-a/2,r=new e.BoxGeometry(t,i,n);r.translate(0,i/2,0);const c=new e.CylinderGeometry(a/2,a/2,n,16,1,!1,0,Math.PI);c.rotateY(Math.PI/2),c.rotateX(Math.PI/2),c.translate(0,i,0),this.copy(G.mergeGeometries([r,c],!1)),this.computeVertexNormals()}}class Se extends e.BufferGeometry{constructor(t=.5,o=.8,n=.15){super();const a=new e.BoxGeometry(t,o,n);a.translate(0,o/2,0),this.copy(a)}}class ve extends e.BufferGeometry{constructor({height:t=2.25}={}){super();const o=new e.BoxGeometry(1.2,.5,1.2);o.translate(0,.25,0);const n=new e.BoxGeometry(1,t,1);n.translate(0,.5+t/2,0);const a=new e.BoxGeometry(1.4,.3,1.4);a.translate(0,.5+t+.15,0),this.copy(G.mergeGeometries([o,n,a],!1))}}class F extends e.BufferGeometry{constructor({barHeight:t=2,barRadius:o=.05,spikeHeight:n=.3,spikeRadius:a=.075,spikeScaleZ:i=1,radialSegments:r=8}={}){super();const c=new e.CylinderGeometry(o,o,t,r);c.translate(0,t/2,0);const l=new e.ConeGeometry(a,n,r);l.translate(0,t+n/2,0),l.scale(1,1,i),this.copy(G.mergeGeometries([c,l],!1))}}class ge extends e.BufferGeometry{constructor({count:t=20,spacing:o=.4,barHeight:n=2,barRadius:a=.05,spikeHeight:i=.3,spikeRadius:r=.075,spikeScaleZ:c=1,railHeight:l=.1,railDepth:m=.05,railOffset:u=0,radialSegments:h=8}={}){super();const d=[],f=new F({barHeight:n,barRadius:a,spikeHeight:i,spikeRadius:r,spikeScaleZ:c,radialSegments:h}),M=new e.BoxGeometry(t*o,l,m);for(let w=0;w<t;w++){const x=f.clone();x.translate(w*o,0,0),d.push(x)}const p=M.clone();p.translate(o*(t-1)/2,n-u-l/2,0),d.push(p);const y=M.clone();y.translate(o*(t-1)/2,l/2,0),d.push(y),this.copy(G.mergeGeometries(d))}}class be extends e.BufferGeometry{constructor({width:t=5,height:o=8,depth:n=1,shelves:a=4,frameThickness:i=.1,open:r=!1}={}){super();const c=o,l=t,m=n,u=new e.BoxGeometry(i,c,m),h=new e.BoxGeometry(l-2*i,i,m),d=u.clone();d.translate(-l/2+i/2,c/2,0);const f=u.clone();f.translate(l/2-i/2,c/2,0);const M=h.clone();M.translate(0,c-i/2,0);const p=h.clone();p.translate(0,i/2,0);const y=new e.BoxGeometry(l,c,i);y.translate(0,c/2,-m/2+i/2);const w=[],x=(c-i)/(a+1);for(let v=1;v<=a;v++){const b=h.clone();b.translate(0,i/2+v*x,0),w.push(b)}this.copy(G.mergeGeometries([d,f,M,p,...r?[]:[y],...w],!1))}}class lt extends e.BufferGeometry{constructor(t=.1){super();const o=[],n=[],a=[[0,1],[.5,.75],[.75,.25],[.5,-.5],[0,-1],[-.5,-.5],[-.75,.25],[-.5,.75]];for(let r=0;r<a.length;r++){const[c,l]=a[r];o.push(c*t,l*t,0)}for(let r=1;r<a.length-1;r++)n.push(0,r,r+1);n.push(0,a.length-1,1);const i=new e.Float32BufferAttribute(o,3);this.setAttribute("position",i),this.setIndex(n),this.computeVertexNormals()}}function Be(s,t=g.XYZ,o=.5,n=2){s.deleteAttribute("uv"),s.deleteAttribute("normal"),s=G.mergeVertices(s),s.computeVertexNormals();const a=s.getAttribute("position");for(let i=0;i<a.count;i++){const r=new e.Vector3().fromBufferAttribute(a,i),c=Math.random()*(n-o)+o,l=t.clone().multiplyScalar(c);r.add(l),a.setXYZ(i,r.x,r.y,r.z)}return a.needsUpdate=!0,s.computeVertexNormals(),s}class Ie extends e.BufferGeometry{constructor(t=1,o=4,n=4){super();const a=new e.SphereGeometry(t,o,n);this.copy(Be(a,g.XYZ,.5,1)),this.computeVertexNormals(),this.center()}}class Ee extends e.BufferGeometry{constructor(t=.1,o=.1,n=.4,a=8){super();const i=new e.CylinderGeometry(t*.6,o*.6,n,a);i.translate(0,0,0);const r=new e.SphereGeometry(t,a,a),c=r.clone(),l=r.clone(),m=r.clone(),u=r.clone();c.translate(0,n/2+t*.6,-t*.6),l.translate(0,n/2+t*.6,t*.6),m.translate(0,-n/2-o*.6,-o*.6),u.translate(0,-n/2-o*.6,o*.6),this.copy(G.mergeGeometries([i,c,l,m,u],!1))}}class Pe extends e.BufferGeometry{constructor(){super();const t=new e.SphereGeometry(1,16,16),o=new e.CylinderGeometry(.2,.2,2,16,1,!0);o.translate(0,1.5,0),o.rotateX(Math.PI/2),this.copy(G.mergeGeometries([t,o],!1))}}class Ce extends e.BufferGeometry{constructor({flaskRadius:t=1,neckRadius:o=.3,height:n=2.5,neckHeight:a=1,radialSegments:i=16}={}){super();const r=[new e.Vector2(0,0),new e.Vector2(t*.875,0),new e.Vector2(t,.1),new e.Vector2(o,n),new e.Vector2(o,n+a),new e.Vector2(o*1.1,n+a+.3)],c=new e.LatheGeometry(r,i);this.copy(G.mergeGeometries([c],!1))}}class Ae extends e.BufferGeometry{constructor(){super();const t=[new e.Vector2(1,0),new e.Vector2(1.2,.5),new e.Vector2(1.4,1.5),new e.Vector2(1.3,1.8),new e.Vector2(.8,1.8)],o=new e.LatheGeometry(t,12),n=new e.CircleGeometry(1,12);n.rotateX(-Math.PI/2),n.translate(0,0,0),this.copy(G.mergeGeometries([o,n],!1))}}class Te extends e.BufferGeometry{constructor({radius:t=.3,height:o=.4,count:n=3,thickness:a=.03,radialSegments:i=16}={}){super();const r=new e.TorusGeometry(t,a,8,i);r.rotateX(Math.PI/2),r.translate(0,o,0);const c=new e.CylinderGeometry(a*.6,a*.6,o,i),l=[];for(let m=0;m<n;m++){const u=m/n*Math.PI*2,h=c.clone();h.translate(Math.cos(u)*t,o/2,Math.sin(u)*t),l.push(h)}this.copy(G.mergeGeometries([r,...l],!1))}}class T extends e.BufferGeometry{constructor(t=.2,o=.2,n=3,a=32,i=!0){super();const r=new e.CylinderGeometry(t,o,n,a,1,i),c=new e.SphereGeometry(o,a,a/2,0,Math.PI*2,Math.PI/2,Math.PI/2);c.translate(0,-(n/2),0),this.copy(G.mergeGeometries([r,c],!1))}}class ke extends e.BufferGeometry{constructor({radius:t=.5,neckRadius:o=.2,height:n=3,neckHeight:a=1,segments:i=16}={}){super();const r=n-a,c=new e.CylinderGeometry(t,t,r,i);c.translate(0,r/2,0);const l=.3,m=new e.CylinderGeometry(o,t,l,i);m.translate(0,r+l/2,0);const u=new e.CylinderGeometry(o,o,a,i);u.translate(0,r+l+a/2,0),this.copy(G.mergeGeometries([c,m,u],!1))}}class Ve extends e.BufferGeometry{constructor({radius:t=3,height:o=.6,widthSegments:n=64,heightSegments:a=16,phiStart:i=0,phiLength:r=Math.PI*2}={}){super(),this.copy(new e.SphereGeometry(t,n,a,i,r,0,Math.PI/2)),this.scale(1,o/t,1)}}const mt=(s,t)=>s/(1-Math.cos(t)),N=(s,t)=>s/(2*Math.sin(t)),Oe=(s,t)=>s*(1-Math.cos(t)),ut=(s,t)=>2*s*Math.sin(t),ht=(s,t,o)=>({x:s*Math.sin(o)*Math.cos(t),y:s*Math.sin(o)*Math.sin(t),z:s*Math.cos(o)}),dt=(s,t,o)=>{const n=Math.sqrt(s*s+t*t+o*o),a=Math.atan2(t,s),i=Math.acos(o/n);return{radius:n,theta:a,phi:i}};class Fe extends e.BufferGeometry{constructor({radius:t=N(5,Math.PI/10),widthSegments:o=64,heightSegments:n=32,phiStart:a=0,phiLength:i=Math.PI*2,thetaLength:r=Math.PI/10}={}){super(),this.copy(new e.SphereGeometry(t,o,n,a,i,0,r));const c=Oe(t,r);this.translate(0,-t+c,0)}}class Ne extends e.BufferGeometry{constructor({trunkRadiusTop:t=.25,trunkRadiusBottom:o=.4,trunkHeight:n=2.5,trunkSegments:a=14,leafSize:i=.8,leafCount:r=6,leafDetail:c=0,leafSpreadRadius:l=1.5}={}){super();const m=new e.CylinderGeometry(t,o,n,a);m.translate(0,n/2,0);const u=[];for(let h=0;h<r;h++){const d=new e.DodecahedronGeometry(i,c);d.translate((Math.random()-.5)*l,(Math.random()-.5)*i+n,(Math.random()-.5)*l),u.push(d)}this.copy(G.mergeGeometries([m.toNonIndexed(),G.mergeGeometries(u,!1)],!0)),this.computeVertexNormals()}}class Mt extends e.Group{constructor(){super();const t=new e.SphereGeometry(5,32,32),o=new e.ShaderMaterial({uniforms:{time:{value:0}},vertexShader:`
|
|
2
2
|
varying vec3 vNormal;
|
|
3
3
|
varying vec3 vPosition;
|
|
4
4
|
void main() {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
color *= 0.8 + 0.2 * n; // Modulate color by noise
|
|
36
36
|
gl_FragColor = vec4(color, 1.0);
|
|
37
37
|
}
|
|
38
|
-
`}),s=new e.Mesh(t,o);this.add(s)}}class Ce extends e.Mesh{constructor({width:t=1,height:o=1.5,depth:s=.5,coverThickness:n=.05,pageIndent:c=.05,coverColor:r=9109504,pageColor:a=16777215}={}){super(),this.geometry=new L(t,o,s,n,c),this.material=[new e.MeshStandardMaterial({color:r,metalness:.1,roughness:.7,flatShading:!0}),new e.MeshStandardMaterial({color:a,flatShading:!0})]}}class Te extends e.Mesh{constructor(t=.4,o=1.2,s=.2){super(),this.geometry=new z(t,o,s),this.material=new e.MeshStandardMaterial({color:7829367,roughness:.8})}}class Ve extends e.Group{constructor(){super();const t=new e.BoxGeometry(5,1,5),o=new e.MeshStandardMaterial({color:8421504,flatShading:!0}),s=new e.Mesh(t,o);s.position.set(0,.5,0),this.add(s);const n=new e.BoxGeometry(4,3,4),c=new e.MeshStandardMaterial({color:6908265,flatShading:!0}),r=new e.Mesh(n,c);r.position.set(0,2.5,0),this.add(r);const a=new e.ConeGeometry(3.5,2,4),i=new e.MeshStandardMaterial({color:5263440,flatShading:!0}),l=new e.Mesh(a,i);l.rotation.y=Math.PI/4,l.position.set(0,5,0),this.add(l);const h=new e.CylinderGeometry(.2,.2,3.5,16),u=new e.MeshStandardMaterial({color:6908265,flatShading:!0});[[-1.8,2.3,-2.2],[1.8,2.3,-2.2],[-1.8,2.3,2.2],[1.8,2.3,2.2]].forEach(x=>{const v=new e.Mesh(h,u);v.position.set(...x),this.add(v)});const y=new e.Shape;y.moveTo(-1,0),y.lineTo(-1,2),y.absarc(0,2,1,Math.PI,0,!0),y.lineTo(1,0);const f={depth:.5,bevelEnabled:!1},p=new e.ExtrudeGeometry(y,f),M=new e.MeshStandardMaterial({color:4210752,flatShading:!0}),w=new e.Mesh(p,M);w.position.set(0,.5,1.7),this.add(w)}}class Ee extends e.Mesh{constructor(t=1.75,o=.75){super(),this.geometry=new _(t,o),this.material=new e.MeshStandardMaterial({color:7829367,roughness:.8})}}class Fe extends e.Mesh{constructor(t=.6,o=1,s=.2,n=.6){super(),this.geometry=new q(t,o,s,n),this.material=new e.MeshStandardMaterial({color:7829367,roughness:.8})}}class Ne extends e.Mesh{constructor(t=.5,o=.8,s=.15){super(),this.geometry=new O(t,o,s),this.material=new e.MeshStandardMaterial({color:7829367,roughness:.8})}}class Ue extends e.Mesh{constructor({height:t=2.25}={}){super(),this.geometry=new D({height:t}),this.material=new e.MeshStandardMaterial({color:9141627,flatShading:!0})}}class Le extends e.Mesh{constructor({barHeight:t=2,barRadius:o=.05,spikeHeight:s=.3,spikeRadius:n=.075,spikeScaleZ:c=1,radialSegments:r=8}={}){super(),this.geometry=new E({barHeight:t,barRadius:o,spikeHeight:s,spikeRadius:n,spikeScaleZ:c,radialSegments:r}),this.material=new e.MeshStandardMaterial({color:3355443,metalness:.8,roughness:.4})}}class ze extends e.Mesh{constructor({count:t=20,spacing:o=.4,barHeight:s=2,barRadius:n=.05,spikeHeight:c=.3,spikeRadius:r=.075,spikeScaleZ:a=1,railHeight:i=.1,railDepth:l=.05,railOffset:h=0,radialSegments:u=8}={}){super(),this.geometry=new H({count:t,spacing:o,barHeight:s,barRadius:n,spikeHeight:c,spikeRadius:r,spikeScaleZ:a,railHeight:i,railDepth:l,railOffset:h,radialSegments:u}),this.material=new e.MeshStandardMaterial({color:3355443,metalness:.8,roughness:.4})}}class _e extends e.Mesh{constructor({width:t=5,height:o=8,depth:s=1,shelves:n=4,frameThickness:c=.1}={}){super(),this.geometry=new X({width:t,height:o,depth:s,shelves:n,frameThickness:c}),this.material=new e.MeshStandardMaterial({color:9127187})}}class qe extends e.Group{constructor(){super();const t=new e.BoxGeometry(5,.3,3),o=new e.MeshStandardMaterial({color:9132587}),s=new e.Mesh(t,o);s.position.set(0,3.15,0);const n=[];n.push(new e.Vector2(.2,0)),n.push(new e.Vector2(.25,.5)),n.push(new e.Vector2(.15,1.5)),n.push(new e.Vector2(.3,3));const c=new e.LatheGeometry(n,32),r=new e.MeshStandardMaterial({color:4929057});[[2.2,0,1.2],[-2.2,0,1.2],[2.2,0,-1.2],[-2.2,0,-1.2]].forEach(i=>{const l=new e.Mesh(c,r);l.position.set(...i),this.add(l)}),this.add(s)}}class Oe extends e.Group{constructor(t=1,o=.2){super(),this.height=t,this.radius=o,this.createCandle(),this.animateFlicker()}createCandle(){const t=new e.CylinderGeometry(this.radius,this.radius,this.height,32),o=new e.MeshStandardMaterial({color:16777215});this.candle=new e.Mesh(t,o),this.candle.position.set(0,this.height/2,0),this.add(this.candle);const s=new e.SphereGeometry(.05,16,16),n=new e.MeshBasicMaterial({color:16753920});this.flame=new e.Mesh(s,n),this.flame.position.set(0,this.height+.05,0),this.add(this.flame),this.candleLight=new e.PointLight(16753920,1,5),this.candleLight.position.set(0,this.height+.05,0),this.candleLight.castShadow=!0,this.add(this.candleLight)}animateFlicker(){const t=()=>{this.candleLight.intensity=1+(Math.random()*.4-.2),this.candleLight.position.x=Math.random()*.02-.01,this.candleLight.position.z=Math.random()*.02-.01,requestAnimationFrame(t)};t()}}class De extends e.Group{constructor(t=1.3,o=.5){super();const s=new e.CylinderGeometry(o,o,.2,16),n=new e.MeshStandardMaterial({color:9127187,flatShading:!0}),c=new e.Mesh(s,n);c.position.set(0,0,0),this.add(c);const r=new e.CylinderGeometry(o*.9,o*.9,t),a=new e.MeshStandardMaterial({color:16766720,flatShading:!0,transparent:!0,opacity:.6}),i=new e.Mesh(r,a);i.position.set(0,t/2+.1,0),this.add(i);const l=new e.ConeGeometry(o*1.1,.5,8),h=new e.MeshStandardMaterial({color:9127187,flatShading:!0}),u=new e.Mesh(l,h);u.position.set(0,t+.35,0),this.add(u);const d=new e.TorusGeometry(o*.8,.05,8,16),y=new e.MeshStandardMaterial({color:9127187,flatShading:!0}),f=new e.Mesh(d,y);f.position.set(0,t+.85,0),this.add(f);const p=new e.PointLight(16755200,1.5,15);p.position.set(0,t/2+.1,0),p.castShadow=!0,this.add(p)}}class He extends e.Group{constructor(){super();const t=new e.DodecahedronGeometry(1,0),o=new e.MeshStandardMaterial({color:8421504,flatShading:!0}),s=new e.MeshStandardMaterial({color:4950843,flatShading:!0,opacity:.8,transparent:!0});for(let n=0;n<5;n++){const c=new e.Mesh(t,o);c.scale.set(.8+Math.random()*.4,.8+Math.random()*.4,.8+Math.random()*.4),c.rotation.set(Math.random()*Math.PI,Math.random()*Math.PI,Math.random()*Math.PI),c.position.set((Math.random()-.5)*4,0,(Math.random()-.5)*4),this.add(c);const r=new e.Mesh(t,s);r.scale.set(c.scale.x*.9,c.scale.y*.5,c.scale.z*.9),r.rotation.copy(c.rotation),r.position.copy(c.position),r.position.y+=.3,this.add(r)}}}class Xe extends e.Mesh{constructor(t=1,o=4,s=4){super(),this.geometry=new Z(t,o,s),this.material=new e.MeshStandardMaterial({color:8421504,flatShading:!0})}}class Ye extends e.Group{constructor(){super();const t=new e.DodecahedronGeometry(1,0),o=new e.MeshStandardMaterial({color:8421504,flatShading:!0});for(let s=0;s<5;s++){const n=new e.Mesh(t,o);n.scale.set(.8+Math.random()*.4,.8+Math.random()*.4,.8+Math.random()*.4),n.rotation.set(Math.random()*Math.PI,Math.random()*Math.PI,Math.random()*Math.PI),n.position.set((Math.random()-.5)*4,0,(Math.random()-.5)*4),this.add(n)}}}class Ze extends e.Group{constructor(){super();const t=new j,o=new e.MeshPhysicalMaterial({color:8965375,transparent:!0,opacity:.4,roughness:.1,metalness:.1,reflectivity:.8,transmission:.9,side:e.DoubleSide}),s=new e.Mesh(t,o);s.rotation.x=-Math.PI/2,this.add(s)}}class Re extends e.Group{constructor(){super();const t=[new e.Vector2(0,0),new e.Vector2(.8,0),new e.Vector2(1,1.5),new e.Vector2(.5,2.2),new e.Vector2(.6,2.5)],o=new e.LatheGeometry(t,10),s=new e.CylinderGeometry(.3,.4,.2,8),n=new e.MeshStandardMaterial({color:8965375,transparent:!0,opacity:.5,roughness:.1,metalness:.3}),c=new e.MeshStandardMaterial({color:16724838,transparent:!0,opacity:.6}),r=new e.MeshStandardMaterial({color:9127187,roughness:1}),a=new e.Mesh(o,n),i=new e.Mesh(o,c),l=new e.Mesh(s,r);i.scale.set(.8,.8,.8),i.position.y=.1,l.position.y=2.5;const h=new e.Group;h.add(a,i,l),this.add(h)}}class je extends e.Group{constructor(){super();const t=new e.CylinderGeometry(.3,.4,.1,16),o=new e.MeshStandardMaterial({color:3355443,roughness:.6,metalness:.3}),s=new e.Mesh(t,o);s.position.y=.05;const n=new e.CylinderGeometry(.1,.1,.7,16),c=new e.MeshStandardMaterial({color:5592405,roughness:.5,metalness:.4}),r=new e.Mesh(n,c);r.position.y=.4;const a=new e.ConeGeometry(.075,.2,16),i=new e.MeshStandardMaterial({color:16733440,emissive:16733440,emissiveIntensity:.6,transparent:!0,opacity:.8}),l=new e.Mesh(a,i);l.position.y=.8,this.add(s,r,l)}}class Qe extends e.Group{constructor(){super();const t=new e.BoxGeometry(3,4,.1),o=new e.MeshStandardMaterial({color:3026478,roughness:.8,metalness:.6}),s=new e.BoxGeometry(.2,.5,.2),n=new e.MeshStandardMaterial({color:11184810,roughness:.5,metalness:.7}),c=new e.CylinderGeometry(.3,.3,.1,16),r=new e.MeshStandardMaterial({color:5592405,roughness:.7,metalness:.5}),a=new e.Mesh(t,o);for(let M=-1;M<=1;M++){const w=new e.Mesh(s,n);w.position.set(M,1.5,.1),a.add(w)}const i=new e.Mesh(c,r);i.rotation.x=Math.PI/2,i.position.set(0,.5,.15),a.add(i);const l=new e.SphereGeometry(.15,8,8),h=new e.MeshStandardMaterial({color:16711680,emissive:16711680,emissiveIntensity:.5}),u=new e.Mesh(l,h);u.position.set(0,-1,.1),a.add(u),this.add(a);let d=.015,y=.8,f=.2;function p(){requestAnimationFrame(p);const M=f+Math.abs(Math.sin(Date.now()*d))*(y-f);u.material.emissiveIntensity=M}p()}}class Ke extends e.Mesh{constructor({flaskRadius:t=1,neckRadius:o=.3,height:s=2.5,neckHeight:n=1,radialSegments:c=16}={}){super(),this.geometry=new Q({flaskRadius:t,neckRadius:o,height:s,neckHeight:n,radialSegments:c}),this.material=new e.MeshPhysicalMaterial({color:8965375,transparent:!0,opacity:.4,roughness:.1,metalness:.1,reflectivity:.8,transmission:.9,side:e.DoubleSide,wireframe:!1})}}class Je extends e.Group{constructor(){super();const t=[new e.Vector2(0,0),new e.Vector2(1.2,0),new e.Vector2(1.5,1.5),new e.Vector2(1,3),new e.Vector2(.6,3.5)],o=new e.LatheGeometry(t,12),s=new e.CylinderGeometry(.6,.7,.3,8),n=new e.MeshStandardMaterial({color:8965290,transparent:!0,opacity:.4,roughness:.1,metalness:.5}),c=new e.MeshStandardMaterial({color:9127187,roughness:1}),r=new e.Mesh(o,n),a=new e.Mesh(s,c);a.position.y=3.5,this.add(r,a)}}class $e extends e.Group{constructor(){super();const t=new e.BoxGeometry(2,3,.1),o=new e.MeshStandardMaterial({color:3355443,roughness:.8,metalness:.5}),s=new e.Mesh(t,o),n=new e.CylinderGeometry(.1,.1,.2,8),c=new e.CylinderGeometry(.05,.05,1,8),r=new e.MeshStandardMaterial({color:11184810,roughness:.5,metalness:.7});for(let a=-.5;a<=.5;a+=.5){const i=new e.Mesh(n,r);i.position.set(a,1,.1);const l=new e.Mesh(c,r);l.position.y=.5,i.add(l),this.add(i)}this.add(s)}}class We extends e.Group{constructor(){super();const t=new e.BoxGeometry(1,.2,.5),o=new e.MeshStandardMaterial({color:4473924,roughness:.6,metalness:.3}),s=new e.Mesh(t,o);s.position.y=.1;const n=new e.BoxGeometry(.2,1,.2),c=new e.Mesh(n,o);c.position.set(0,.6,-.2);const r=new e.CylinderGeometry(.1,.1,.4,8),a=new e.MeshStandardMaterial({color:3355443,roughness:.5,metalness:.6}),i=new e.Mesh(r,a);i.position.set(0,1.1,-.35),i.rotation.x=-Math.PI/4;const l=new e.BoxGeometry(.6,.1,.6),h=new e.MeshStandardMaterial({color:5592405,roughness:.8,metalness:.2}),u=new e.Mesh(l,h);u.position.set(0,.6,0),this.add(s,c,i,u)}}class et extends e.Group{constructor(){super();const t=new K,o=new e.CylinderGeometry(.2,.3,1.5,8);o.translate(0,.75,0);const s=new e.MeshStandardMaterial({color:6045747,roughness:1,metalness:0,side:e.DoubleSide}),n=new e.MeshStandardMaterial({color:9132587,roughness:.8,metalness:.1}),c=new e.Mesh(t,s),r=new e.Mesh(o,n);r.position.set(.3,1.3,0),r.rotation.z=Math.PI/4,this.add(c,r)}}class tt extends e.Group{constructor(){super();const t=100,o=.05,s=new e.CatmullRomCurve3(Array.from({length:t},(l,h)=>{const u=h*.2;return new e.Vector3(Math.cos(u)*.4,h*o,Math.sin(u)*.4)})),n=new e.TubeGeometry(s,200,.1,8,!1),c=new e.MeshStandardMaterial({color:8965375,transparent:!0,opacity:.3,roughness:.1,metalness:.2,emissive:8965375}),r=new e.Mesh(n,c);this.add(r);function a(){c.emissiveIntensity=.2+Math.sin(Date.now()*.005)*.1}function i(){requestAnimationFrame(i),a()}i()}}class ot extends e.Mesh{constructor({radius:t=.3,height:o=.4,count:s=3,thickness:n=.03,radialSegments:c=16}={}){super(),this.geometry=new J({radius:t,height:o,count:s,thickness:n,radialSegments:c}),this.material=new e.MeshStandardMaterial({color:8947848,roughness:.7,metalness:.3})}}class st extends e.Group{constructor(){super();const t=new e.CylinderGeometry(.5,.6,.3,16),o=new e.MeshStandardMaterial({color:3355443,roughness:.6,metalness:.5}),s=new e.Mesh(t,o);s.position.y=.15;const n=new e.CylinderGeometry(.15,.15,2,12,1,!0),c=new e.MeshStandardMaterial({color:16737792,roughness:.5,metalness:.8,side:e.DoubleSide}),r=new e.Mesh(n,c);r.position.y=1.3;const a=new e.SphereGeometry(.3,16,16),i=new e.Mesh(a,c);i.position.y=2.4,this.add(s,r,i);const l=[];for(let d=0;d<5;d++){const y=new e.LineBasicMaterial({color:10079487}),f=[new e.Vector3(0,2.4,0),new e.Vector3((Math.random()-.5)*1.5,Math.random()*2.4,(Math.random()-.5)*1.5)],p=new e.BufferGeometry().setFromPoints(f),M=new e.Line(p,y);this.add(M),l.push(M)}function h(){l.forEach(d=>{const y=[new e.Vector3(0,2.4,0),new e.Vector3((Math.random()-.5)*1.5,Math.random()*2.4,(Math.random()-.5)*1.5)];d.geometry.setFromPoints(y)})}function u(){requestAnimationFrame(u),h()}u()}}class rt extends e.Group{constructor(t=.2,o=.2,s=3,n=32){super();const c=new T(t,o,s,n),r=new e.MeshPhysicalMaterial({color:8965375,transparent:!0,opacity:.4,roughness:.1,metalness:.1,reflectivity:.8,transmission:.9,side:e.DoubleSide}),a=new e.Mesh(c,r);this.add(a)}}class nt extends e.Group{constructor(t=3,o=[65450,16711850,11141375]){super();const s=new e.BoxGeometry(3,.2,1),n=new e.MeshStandardMaterial({color:9127187,roughness:.7,metalness:.3}),c=new e.Mesh(s,n);c.position.y=.5;const r=new T(.1,.1,1,16),a=new e.MeshStandardMaterial({color:11184810,transparent:!0,opacity:.4,roughness:.1,metalness:.5,side:e.DoubleSide});for(let i=0;i<t;i++){const l=new e.Mesh(r,a),h=(i-(t-1)/2)*.8;l.position.set(h,1,0);const u=new T(.099,.099,.5,16,!1),d=o[i%o.length],y=new e.MeshStandardMaterial({color:d,emissive:d,emissiveIntensity:.5,transparent:!0,opacity:.6}),f=new e.Mesh(u,y);f.position.set(0,-.25,0),l.add(f),c.add(l)}this.add(c)}}class at extends e.Mesh{constructor(){super();const t=new $,o=new e.MeshPhysicalMaterial({color:5597999,roughness:.1,transmission:.9,thickness:.2,metalness:0,clearcoat:1,clearcoatRoughness:.1});this.geometry=t,this.material=o}}class se extends e.Shape{constructor(t=5,o=.5,s=1){super();const n=Math.PI*2/t,c=n/2,r=n/4;this.moveTo(Math.cos(0)*s,-Math.sin(0)*s);for(let a=1;a<=t;++a){let i=Math.cos(n*a-r*3)*(o/Math.cos(r)),l=-Math.sin(n*a-r*3)*(o/Math.cos(r)),h=Math.cos(n*a-c)*o,u=-Math.sin(n*a-c)*o;this.quadraticCurveTo(i,l,h,u),i=Math.cos(n*a-r)*(o/Math.cos(r)),l=-Math.sin(n*a-r)*(o/Math.cos(r)),h=Math.cos(n*a)*s,u=-Math.sin(n*a)*s,this.quadraticCurveTo(i,l,h,u)}this.closePath()}}class ct extends e.Mesh{constructor(t=5,o=.5,s=1,n=.25){super();const c=new se(t,o,s),r=new e.ExtrudeGeometry(c,{depth:n,bevelEnabled:n>0,bevelThickness:0,bevelSize:0}),a=new e.MeshStandardMaterial({color:16776960,emissive:16766720,emissiveIntensity:.25,metalness:.1,roughness:.3,flatShading:!0});r.center(),this.geometry=r,this.material=a}}class re extends e.Shape{constructor(t=5,o=.5,s=1,n=5,c=.25){super();const r=Math.PI*2/t,a=r/4;this.moveTo(Math.cos(0)*s,-Math.sin(0)*s);for(let i=1;i<=t;++i)this.lineTo(Math.cos(r*i-a*3)*o,-Math.sin(r*i-a*3)*o),this.lineTo(Math.cos(r*i-a*2)*o,-Math.sin(r*i-a*2)*o),this.lineTo(Math.cos(r*i-a)*s,-Math.sin(r*i-a)*s),this.lineTo(Math.cos(r*i)*s,-Math.sin(r*i)*s);if(this.closePath(),c>0&&n>2){const i=new e.Path,l=Math.PI*2/n;i.moveTo(Math.cos(0)*c,-Math.sin(0)*c);for(let h=1;h<n;++h)i.lineTo(Math.cos(l*h)*c,-Math.sin(l*h)*c);i.lineTo(Math.cos(0)*c,-Math.sin(0)*c),this.holes.push(i)}}}class it extends e.Mesh{constructor(t=5,o=.5,s=1,n=5,c=.25,r=.25){super();const a=new re(t,o,s,n,c),i=new e.ExtrudeGeometry(a,{depth:r,bevelEnabled:r>0,bevelThickness:0,bevelSize:0}),l=new e.MeshStandardMaterial({color:11184810,metalness:.8,roughness:.2,reflectivity:.5});i.center(),this.geometry=i,this.material=l}}class ne extends e.Shape{constructor(t=1,o=2.1,s=1.4,n=1.6){super(),this.moveTo(0,s*t/3),this.bezierCurveTo(-o*.375*t,s*t,-o*t,s*t/3,0,-n*t),this.bezierCurveTo(o*t,s*t/3,o*.375*t,s*t,0,s*t/3)}}class lt extends e.Mesh{constructor(t=1,o=1,s=1,n=10,c=.25){super();const r=new ne(t,o,s,n),a=new e.ExtrudeGeometry(r,{depth:c,bevelEnabled:c>0,bevelThickness:0,bevelSize:0}),i=new e.MeshStandardMaterial({color:12986408,emissive:12981270,emissiveIntensity:.25,metalness:.1,roughness:.3,flatShading:!0});a.center(),this.geometry=a,this.material=i}}class ae extends e.Shape{constructor(t=5,o=.5,s=1){super();const n=Math.PI*2/t,c=n/2;this.moveTo(Math.cos(0)*s,Math.sin(0)*s);for(let r=1;r<=t;++r)this.lineTo(Math.cos(n*r-c)*o,Math.sin(n*r-c)*o),this.lineTo(Math.cos(n*r)*s,Math.sin(n*r)*s);this.closePath()}}class mt extends e.Mesh{constructor(t=5,o=.5,s=1,n=.25){super();const c=new ae(t,o,s),r=new e.ExtrudeGeometry(c,{depth:n,bevelEnabled:n>0,bevelThickness:0,bevelSize:0}),a=new e.MeshStandardMaterial({color:16776960,emissive:16766720,emissiveIntensity:.25,metalness:.1,roughness:.3,flatShading:!0});r.center(),this.geometry=r,this.material=a}}class ht extends e.Mesh{constructor(){super(),this.geometry=new R,this.material=new e.MeshStandardMaterial({color:16777215})}}class ut extends e.Mesh{constructor({trunkRadiusTop:t=.25,trunkRadiusBottom:o=.4,trunkHeight:s=2.5,trunkSegments:n=14,trunkColor:c=9127187,leafSize:r=.8,leafCount:a=6,leafDetail:i=0,leafSpreadRadius:l=1.5,leafColor:h=2263842}={}){super();const u=new oe({trunkRadiusTop:t,trunkRadiusBottom:o,trunkHeight:s,trunkSegments:n,trunkColor:c,leafSize:r,leafCount:a,leafDetail:i,leafSpreadRadius:l,leafColor:h}),d=new e.MeshStandardMaterial({color:c,roughness:.9,metalness:0,flatShading:!0}),y=new e.MeshStandardMaterial({color:h,roughness:.8,metalness:0,flatShading:!0});this.geometry=u,this.material=[d,y]}}class dt extends e.Mesh{constructor({radius:t=3,height:o=.6,widthSegments:s=64,heightSegments:n=16,phiStart:c=0,phiLength:r=Math.PI*2}={}){super(),this.geometry=new W({radius:t,height:o,widthSegments:s,heightSegments:n,phiStart:c,phiLength:r}),this.material=new e.MeshStandardMaterial({color:65280,flatShading:!0})}}class ft extends e.Mesh{constructor({radius:t=F(5,Math.PI/10),widthSegments:o=64,heightSegments:s=32,phiStart:n=0,phiLength:c=Math.PI*2,thetaLength:r=Math.PI/10}={}){super(),this.geometry=new te({radius:t,widthSegments:o,heightSegments:s,phiStart:n,phiLength:c,thetaLength:r}),this.material=new e.MeshStandardMaterial({color:65280,flatShading:!0})}}function yt(m,{time:t=0,waveFrequency:o=.2,waveAmplitude:s=.5}={}){m.onBeforeCompile=n=>{n.uniforms.time={value:t},n.uniforms.waveFrequency={value:o},n.uniforms.waveAmplitude={value:s},n.vertexShader=`
|
|
38
|
+
`}),n=new e.Mesh(t,o);this.add(n)}}class ft extends e.Mesh{constructor({width:t=1,height:o=1.5,depth:n=.5,coverThickness:a=.05,pageIndent:i=.05,coverColor:r=9109504,pageColor:c=16777215}={}){super(),this.geometry=new V(t,o,n,a,i),this.material=[new e.MeshStandardMaterial({color:r,metalness:.1,roughness:.7,flatShading:!0}),new e.MeshStandardMaterial({color:c,flatShading:!0})]}}class yt extends e.Mesh{constructor(t=.4,o=1.2,n=.2){super(),this.geometry=new we(t,o,n),this.material=new e.MeshStandardMaterial({color:7829367,roughness:.8})}}class pt extends e.Group{constructor(){super();const t=new e.BoxGeometry(5,1,5),o=new e.MeshStandardMaterial({color:8421504,flatShading:!0}),n=new e.Mesh(t,o);n.position.set(0,.5,0),this.add(n);const a=new e.BoxGeometry(4,3,4),i=new e.MeshStandardMaterial({color:6908265,flatShading:!0}),r=new e.Mesh(a,i);r.position.set(0,2.5,0),this.add(r);const c=new e.ConeGeometry(3.5,2,4),l=new e.MeshStandardMaterial({color:5263440,flatShading:!0}),m=new e.Mesh(c,l);m.rotation.y=Math.PI/4,m.position.set(0,5,0),this.add(m);const u=new e.CylinderGeometry(.2,.2,3.5,16),h=new e.MeshStandardMaterial({color:6908265,flatShading:!0});[[-1.8,2.3,-2.2],[1.8,2.3,-2.2],[-1.8,2.3,2.2],[1.8,2.3,2.2]].forEach(x=>{const v=new e.Mesh(u,h);v.position.set(...x),this.add(v)});const f=new e.Shape;f.moveTo(-1,0),f.lineTo(-1,2),f.absarc(0,2,1,Math.PI,0,!0),f.lineTo(1,0);const M={depth:.5,bevelEnabled:!1},p=new e.ExtrudeGeometry(f,M),y=new e.MeshStandardMaterial({color:4210752,flatShading:!0}),w=new e.Mesh(p,y);w.position.set(0,.5,1.7),this.add(w)}}class wt extends e.Mesh{constructor(t=1.75,o=.75){super(),this.geometry=new xe(t,o),this.material=new e.MeshStandardMaterial({color:7829367,roughness:.8})}}class xt extends e.Mesh{constructor(t=.6,o=1,n=.2,a=.6){super(),this.geometry=new Ge(t,o,n,a),this.material=new e.MeshStandardMaterial({color:7829367,roughness:.8})}}class Gt extends e.Mesh{constructor(t=.5,o=.8,n=.15){super(),this.geometry=new Se(t,o,n),this.material=new e.MeshStandardMaterial({color:7829367,roughness:.8})}}class St extends e.Mesh{constructor({height:t=2.25}={}){super(),this.geometry=new ve({height:t}),this.material=new e.MeshStandardMaterial({color:9141627,flatShading:!0})}}class vt extends e.Mesh{constructor({barHeight:t=2,barRadius:o=.05,spikeHeight:n=.3,spikeRadius:a=.075,spikeScaleZ:i=1,radialSegments:r=8}={}){super(),this.geometry=new F({barHeight:t,barRadius:o,spikeHeight:n,spikeRadius:a,spikeScaleZ:i,radialSegments:r}),this.material=new e.MeshStandardMaterial({color:3355443,metalness:.8,roughness:.4})}}class gt extends e.Mesh{constructor({count:t=20,spacing:o=.4,barHeight:n=2,barRadius:a=.05,spikeHeight:i=.3,spikeRadius:r=.075,spikeScaleZ:c=1,railHeight:l=.1,railDepth:m=.05,railOffset:u=0,radialSegments:h=8}={}){super(),this.geometry=new ge({count:t,spacing:o,barHeight:n,barRadius:a,spikeHeight:i,spikeRadius:r,spikeScaleZ:c,railHeight:l,railDepth:m,railOffset:u,radialSegments:h}),this.material=new e.MeshStandardMaterial({color:3355443,metalness:.8,roughness:.4})}}class bt extends e.Mesh{constructor({width:t=5,height:o=8,depth:n=1,shelves:a=4,frameThickness:i=.1,open:r=!1}={}){super(),this.geometry=new be({width:t,height:o,depth:n,shelves:a,frameThickness:i,open:r}),this.material=new e.MeshStandardMaterial({color:9127187})}}class Bt extends e.Group{constructor(){super();const t=new e.BoxGeometry(5,.3,3),o=new e.MeshStandardMaterial({color:9132587}),n=new e.Mesh(t,o);n.position.set(0,3.15,0);const a=[];a.push(new e.Vector2(.2,0)),a.push(new e.Vector2(.25,.5)),a.push(new e.Vector2(.15,1.5)),a.push(new e.Vector2(.3,3));const i=new e.LatheGeometry(a,32),r=new e.MeshStandardMaterial({color:4929057});[[2.2,0,1.2],[-2.2,0,1.2],[2.2,0,-1.2],[-2.2,0,-1.2]].forEach(l=>{const m=new e.Mesh(i,r);m.position.set(...l),this.add(m)}),this.add(n)}}class It extends e.Group{constructor(t=1,o=.2){super(),this.height=t,this.radius=o,this.createCandle(),this.animateFlicker()}createCandle(){const t=new e.CylinderGeometry(this.radius,this.radius,this.height,32),o=new e.MeshStandardMaterial({color:16777215});this.candle=new e.Mesh(t,o),this.candle.position.set(0,this.height/2,0),this.add(this.candle);const n=new e.SphereGeometry(.05,16,16),a=new e.MeshBasicMaterial({color:16753920});this.flame=new e.Mesh(n,a),this.flame.position.set(0,this.height+.05,0),this.add(this.flame),this.candleLight=new e.PointLight(16753920,1,5),this.candleLight.position.set(0,this.height+.05,0),this.candleLight.castShadow=!0,this.add(this.candleLight)}animateFlicker(){const t=()=>{this.candleLight.intensity=1+(Math.random()*.4-.2),this.candleLight.position.x=Math.random()*.02-.01,this.candleLight.position.z=Math.random()*.02-.01,requestAnimationFrame(t)};t()}}class Et extends e.Group{constructor(t=1.3,o=.5){super();const n=new e.CylinderGeometry(o,o,.2,16),a=new e.MeshStandardMaterial({color:9127187,flatShading:!0}),i=new e.Mesh(n,a);i.position.set(0,0,0),this.add(i);const r=new e.CylinderGeometry(o*.9,o*.9,t),c=new e.MeshStandardMaterial({color:16766720,flatShading:!0,transparent:!0,opacity:.6}),l=new e.Mesh(r,c);l.position.set(0,t/2+.1,0),this.add(l);const m=new e.ConeGeometry(o*1.1,.5,8),u=new e.MeshStandardMaterial({color:9127187,flatShading:!0}),h=new e.Mesh(m,u);h.position.set(0,t+.35,0),this.add(h);const d=new e.TorusGeometry(o*.8,.05,8,16),f=new e.MeshStandardMaterial({color:9127187,flatShading:!0}),M=new e.Mesh(d,f);M.position.set(0,t+.85,0),this.add(M);const p=new e.PointLight(16755200,1.5,15);p.position.set(0,t/2+.1,0),p.castShadow=!0,this.add(p)}}class Pt extends e.Group{constructor(){super();const t=new e.DodecahedronGeometry(1,0),o=new e.MeshStandardMaterial({color:8421504,flatShading:!0}),n=new e.MeshStandardMaterial({color:4950843,flatShading:!0,opacity:.8,transparent:!0});for(let a=0;a<5;a++){const i=new e.Mesh(t,o);i.scale.set(.8+Math.random()*.4,.8+Math.random()*.4,.8+Math.random()*.4),i.rotation.set(Math.random()*Math.PI,Math.random()*Math.PI,Math.random()*Math.PI),i.position.set((Math.random()-.5)*4,0,(Math.random()-.5)*4),this.add(i);const r=new e.Mesh(t,n);r.scale.set(i.scale.x*.9,i.scale.y*.5,i.scale.z*.9),r.rotation.copy(i.rotation),r.position.copy(i.position),r.position.y+=.3,this.add(r)}}}class Ct extends e.Mesh{constructor(t=1,o=4,n=4){super(),this.geometry=new Ie(t,o,n),this.material=new e.MeshStandardMaterial({color:8421504,flatShading:!0})}}class At extends e.Group{constructor(){super();const t=new e.DodecahedronGeometry(1,0),o=new e.MeshStandardMaterial({color:8421504,flatShading:!0});for(let n=0;n<5;n++){const a=new e.Mesh(t,o);a.scale.set(.8+Math.random()*.4,.8+Math.random()*.4,.8+Math.random()*.4),a.rotation.set(Math.random()*Math.PI,Math.random()*Math.PI,Math.random()*Math.PI),a.position.set((Math.random()-.5)*4,0,(Math.random()-.5)*4),this.add(a)}}}class Tt extends e.Group{constructor(){super();const t=new Pe,o=new e.MeshPhysicalMaterial({color:8965375,transparent:!0,opacity:.4,roughness:.1,metalness:.1,reflectivity:.8,transmission:.9,side:e.DoubleSide}),n=new e.Mesh(t,o);n.rotation.x=-Math.PI/2,this.add(n)}}class kt extends e.Group{constructor(){super();const t=[new e.Vector2(0,0),new e.Vector2(.8,0),new e.Vector2(1,1.5),new e.Vector2(.5,2.2),new e.Vector2(.6,2.5)],o=new e.LatheGeometry(t,10),n=new e.CylinderGeometry(.3,.4,.2,8),a=new e.MeshStandardMaterial({color:8965375,transparent:!0,opacity:.5,roughness:.1,metalness:.3}),i=new e.MeshStandardMaterial({color:16724838,transparent:!0,opacity:.6}),r=new e.MeshStandardMaterial({color:9127187,roughness:1}),c=new e.Mesh(o,a),l=new e.Mesh(o,i),m=new e.Mesh(n,r);l.scale.set(.8,.8,.8),l.position.y=.1,m.position.y=2.5;const u=new e.Group;u.add(c,l,m),this.add(u)}}class Vt extends e.Group{constructor(){super();const t=new e.CylinderGeometry(.3,.4,.1,16),o=new e.MeshStandardMaterial({color:3355443,roughness:.6,metalness:.3}),n=new e.Mesh(t,o);n.position.y=.05;const a=new e.CylinderGeometry(.1,.1,.7,16),i=new e.MeshStandardMaterial({color:5592405,roughness:.5,metalness:.4}),r=new e.Mesh(a,i);r.position.y=.4;const c=new e.ConeGeometry(.075,.2,16),l=new e.MeshStandardMaterial({color:16733440,emissive:16733440,emissiveIntensity:.6,transparent:!0,opacity:.8}),m=new e.Mesh(c,l);m.position.y=.8,this.add(n,r,m)}}class Ot extends e.Group{constructor(){super();const t=new e.BoxGeometry(3,4,.1),o=new e.MeshStandardMaterial({color:3026478,roughness:.8,metalness:.6}),n=new e.BoxGeometry(.2,.5,.2),a=new e.MeshStandardMaterial({color:11184810,roughness:.5,metalness:.7}),i=new e.CylinderGeometry(.3,.3,.1,16),r=new e.MeshStandardMaterial({color:5592405,roughness:.7,metalness:.5}),c=new e.Mesh(t,o);for(let y=-1;y<=1;y++){const w=new e.Mesh(n,a);w.position.set(y,1.5,.1),c.add(w)}const l=new e.Mesh(i,r);l.rotation.x=Math.PI/2,l.position.set(0,.5,.15),c.add(l);const m=new e.SphereGeometry(.15,8,8),u=new e.MeshStandardMaterial({color:16711680,emissive:16711680,emissiveIntensity:.5}),h=new e.Mesh(m,u);h.position.set(0,-1,.1),c.add(h),this.add(c);let d=.015,f=.8,M=.2;function p(){requestAnimationFrame(p);const y=M+Math.abs(Math.sin(Date.now()*d))*(f-M);h.material.emissiveIntensity=y}p()}}class Ft extends e.Mesh{constructor({flaskRadius:t=1,neckRadius:o=.3,height:n=2.5,neckHeight:a=1,radialSegments:i=16}={}){super(),this.geometry=new Ce({flaskRadius:t,neckRadius:o,height:n,neckHeight:a,radialSegments:i}),this.material=new e.MeshPhysicalMaterial({color:8965375,transparent:!0,opacity:.4,roughness:.1,metalness:.1,reflectivity:.8,transmission:.9,side:e.DoubleSide,wireframe:!1})}}class Nt extends e.Group{constructor(){super();const t=[new e.Vector2(0,0),new e.Vector2(1.2,0),new e.Vector2(1.5,1.5),new e.Vector2(1,3),new e.Vector2(.6,3.5)],o=new e.LatheGeometry(t,12),n=new e.CylinderGeometry(.6,.7,.3,8),a=new e.MeshStandardMaterial({color:8965290,transparent:!0,opacity:.4,roughness:.1,metalness:.5}),i=new e.MeshStandardMaterial({color:9127187,roughness:1}),r=new e.Mesh(o,a),c=new e.Mesh(n,i);c.position.y=3.5,this.add(r,c)}}class _t extends e.Group{constructor(){super();const t=new e.BoxGeometry(2,3,.1),o=new e.MeshStandardMaterial({color:3355443,roughness:.8,metalness:.5}),n=new e.Mesh(t,o),a=new e.CylinderGeometry(.1,.1,.2,8),i=new e.CylinderGeometry(.05,.05,1,8),r=new e.MeshStandardMaterial({color:11184810,roughness:.5,metalness:.7});for(let c=-.5;c<=.5;c+=.5){const l=new e.Mesh(a,r);l.position.set(c,1,.1);const m=new e.Mesh(i,r);m.position.y=.5,l.add(m),this.add(l)}this.add(n)}}class Ut extends e.Group{constructor(){super();const t=new e.BoxGeometry(1,.2,.5),o=new e.MeshStandardMaterial({color:4473924,roughness:.6,metalness:.3}),n=new e.Mesh(t,o);n.position.y=.1;const a=new e.BoxGeometry(.2,1,.2),i=new e.Mesh(a,o);i.position.set(0,.6,-.2);const r=new e.CylinderGeometry(.1,.1,.4,8),c=new e.MeshStandardMaterial({color:3355443,roughness:.5,metalness:.6}),l=new e.Mesh(r,c);l.position.set(0,1.1,-.35),l.rotation.x=-Math.PI/4;const m=new e.BoxGeometry(.6,.1,.6),u=new e.MeshStandardMaterial({color:5592405,roughness:.8,metalness:.2}),h=new e.Mesh(m,u);h.position.set(0,.6,0),this.add(n,i,l,h)}}class qt extends e.Group{constructor(){super();const t=new Ae,o=new e.CylinderGeometry(.2,.3,1.5,8);o.translate(0,.75,0);const n=new e.MeshStandardMaterial({color:6045747,roughness:1,metalness:0,side:e.DoubleSide}),a=new e.MeshStandardMaterial({color:9132587,roughness:.8,metalness:.1}),i=new e.Mesh(t,n),r=new e.Mesh(o,a);r.position.set(.3,1.3,0),r.rotation.z=Math.PI/4,this.add(i,r)}}class Lt extends e.Group{constructor(){super();const t=100,o=.05,n=new e.CatmullRomCurve3(Array.from({length:t},(m,u)=>{const h=u*.2;return new e.Vector3(Math.cos(h)*.4,u*o,Math.sin(h)*.4)})),a=new e.TubeGeometry(n,200,.1,8,!1),i=new e.MeshStandardMaterial({color:8965375,transparent:!0,opacity:.3,roughness:.1,metalness:.2,emissive:8965375}),r=new e.Mesh(a,i);this.add(r);function c(){i.emissiveIntensity=.2+Math.sin(Date.now()*.005)*.1}function l(){requestAnimationFrame(l),c()}l()}}class zt extends e.Mesh{constructor({radius:t=.3,height:o=.4,count:n=3,thickness:a=.03,radialSegments:i=16}={}){super(),this.geometry=new Te({radius:t,height:o,count:n,thickness:a,radialSegments:i}),this.material=new e.MeshStandardMaterial({color:8947848,roughness:.7,metalness:.3})}}class Rt extends e.Group{constructor(){super();const t=new e.CylinderGeometry(.5,.6,.3,16),o=new e.MeshStandardMaterial({color:3355443,roughness:.6,metalness:.5}),n=new e.Mesh(t,o);n.position.y=.15;const a=new e.CylinderGeometry(.15,.15,2,12,1,!0),i=new e.MeshStandardMaterial({color:16737792,roughness:.5,metalness:.8,side:e.DoubleSide}),r=new e.Mesh(a,i);r.position.y=1.3;const c=new e.SphereGeometry(.3,16,16),l=new e.Mesh(c,i);l.position.y=2.4,this.add(n,r,l);const m=[];for(let d=0;d<5;d++){const f=new e.LineBasicMaterial({color:10079487}),M=[new e.Vector3(0,2.4,0),new e.Vector3((Math.random()-.5)*1.5,Math.random()*2.4,(Math.random()-.5)*1.5)],p=new e.BufferGeometry().setFromPoints(M),y=new e.Line(p,f);this.add(y),m.push(y)}function u(){m.forEach(d=>{const f=[new e.Vector3(0,2.4,0),new e.Vector3((Math.random()-.5)*1.5,Math.random()*2.4,(Math.random()-.5)*1.5)];d.geometry.setFromPoints(f)})}function h(){requestAnimationFrame(h),u()}h()}}class Dt extends e.Group{constructor(t=.2,o=.2,n=3,a=32){super();const i=new T(t,o,n,a),r=new e.MeshPhysicalMaterial({color:8965375,transparent:!0,opacity:.4,roughness:.1,metalness:.1,reflectivity:.8,transmission:.9,side:e.DoubleSide}),c=new e.Mesh(i,r);this.add(c)}}class Xt extends e.Group{constructor(t=3,o=[65450,16711850,11141375]){super();const n=new e.BoxGeometry(3,.2,1),a=new e.MeshStandardMaterial({color:9127187,roughness:.7,metalness:.3}),i=new e.Mesh(n,a);i.position.y=.5;const r=new T(.1,.1,1,16),c=new e.MeshStandardMaterial({color:11184810,transparent:!0,opacity:.4,roughness:.1,metalness:.5,side:e.DoubleSide});for(let l=0;l<t;l++){const m=new e.Mesh(r,c),u=(l-(t-1)/2)*.8;m.position.set(u,1,0);const h=new T(.099,.099,.5,16,!1),d=o[l%o.length],f=new e.MeshStandardMaterial({color:d,emissive:d,emissiveIntensity:.5,transparent:!0,opacity:.6}),M=new e.Mesh(h,f);M.position.set(0,-.25,0),m.add(M),i.add(m)}this.add(i)}}class Ht extends e.Mesh{constructor(){super();const t=new ke,o=new e.MeshPhysicalMaterial({color:5597999,roughness:.1,transmission:.9,thickness:.2,metalness:0,clearcoat:1,clearcoatRoughness:.1});this.geometry=t,this.material=o}}class _e extends e.Shape{constructor(t=5,o=.5,n=1){super();const a=Math.PI*2/t,i=a/2,r=a/4;this.moveTo(Math.cos(0)*n,-Math.sin(0)*n);for(let c=1;c<=t;++c){let l=Math.cos(a*c-r*3)*(o/Math.cos(r)),m=-Math.sin(a*c-r*3)*(o/Math.cos(r)),u=Math.cos(a*c-i)*o,h=-Math.sin(a*c-i)*o;this.quadraticCurveTo(l,m,u,h),l=Math.cos(a*c-r)*(o/Math.cos(r)),m=-Math.sin(a*c-r)*(o/Math.cos(r)),u=Math.cos(a*c)*n,h=-Math.sin(a*c)*n,this.quadraticCurveTo(l,m,u,h)}this.closePath()}}class Zt extends e.Mesh{constructor(t=5,o=.5,n=1,a=.25){super();const i=new _e(t,o,n),r=new e.ExtrudeGeometry(i,{depth:a,bevelEnabled:a>0,bevelThickness:0,bevelSize:0}),c=new e.MeshStandardMaterial({color:16776960,emissive:16766720,emissiveIntensity:.25,metalness:.1,roughness:.3,flatShading:!0});r.center(),this.geometry=r,this.material=c}}class Ue extends e.Shape{constructor(t=5,o=.5,n=1,a=5,i=.25){super();const r=Math.PI*2/t,c=r/4;this.moveTo(Math.cos(0)*n,-Math.sin(0)*n);for(let l=1;l<=t;++l)this.lineTo(Math.cos(r*l-c*3)*o,-Math.sin(r*l-c*3)*o),this.lineTo(Math.cos(r*l-c*2)*o,-Math.sin(r*l-c*2)*o),this.lineTo(Math.cos(r*l-c)*n,-Math.sin(r*l-c)*n),this.lineTo(Math.cos(r*l)*n,-Math.sin(r*l)*n);if(this.closePath(),i>0&&a>2){const l=new e.Path,m=Math.PI*2/a;l.moveTo(Math.cos(0)*i,-Math.sin(0)*i);for(let u=1;u<a;++u)l.lineTo(Math.cos(m*u)*i,-Math.sin(m*u)*i);l.lineTo(Math.cos(0)*i,-Math.sin(0)*i),this.holes.push(l)}}}class Yt extends e.Mesh{constructor(t=5,o=.5,n=1,a=5,i=.25,r=.25){super();const c=new Ue(t,o,n,a,i),l=new e.ExtrudeGeometry(c,{depth:r,bevelEnabled:r>0,bevelThickness:0,bevelSize:0}),m=new e.MeshStandardMaterial({color:11184810,metalness:.8,roughness:.2,reflectivity:.5});l.center(),this.geometry=l,this.material=m}}class qe extends e.Shape{constructor(t=1,o=2.1,n=1.4,a=1.6){super(),this.moveTo(0,n*t/3),this.bezierCurveTo(-o*.375*t,n*t,-o*t,n*t/3,0,-a*t),this.bezierCurveTo(o*t,n*t/3,o*.375*t,n*t,0,n*t/3)}}class Qt extends e.Mesh{constructor(t=1,o=1,n=1,a=10,i=.25){super();const r=new qe(t,o,n,a),c=new e.ExtrudeGeometry(r,{depth:i,bevelEnabled:i>0,bevelThickness:0,bevelSize:0}),l=new e.MeshStandardMaterial({color:12986408,emissive:12981270,emissiveIntensity:.25,metalness:.1,roughness:.3,flatShading:!0});c.center(),this.geometry=c,this.material=l}}class Le extends e.Shape{constructor(t=5,o=.5,n=1){super();const a=Math.PI*2/t,i=a/2;this.moveTo(Math.cos(0)*n,Math.sin(0)*n);for(let r=1;r<=t;++r)this.lineTo(Math.cos(a*r-i)*o,Math.sin(a*r-i)*o),this.lineTo(Math.cos(a*r)*n,Math.sin(a*r)*n);this.closePath()}}class jt extends e.Mesh{constructor(t=5,o=.5,n=1,a=.25){super();const i=new Le(t,o,n),r=new e.ExtrudeGeometry(i,{depth:a,bevelEnabled:a>0,bevelThickness:0,bevelSize:0}),c=new e.MeshStandardMaterial({color:16776960,emissive:16766720,emissiveIntensity:.25,metalness:.1,roughness:.3,flatShading:!0});r.center(),this.geometry=r,this.material=c}}class Kt extends e.Mesh{constructor(){super(),this.geometry=new Ee,this.material=new e.MeshStandardMaterial({color:16777215})}}class Jt extends e.Mesh{constructor({trunkRadiusTop:t=.25,trunkRadiusBottom:o=.4,trunkHeight:n=2.5,trunkSegments:a=14,trunkColor:i=9127187,leafSize:r=.8,leafCount:c=6,leafDetail:l=0,leafSpreadRadius:m=1.5,leafColor:u=2263842}={}){super();const h=new Ne({trunkRadiusTop:t,trunkRadiusBottom:o,trunkHeight:n,trunkSegments:a,trunkColor:i,leafSize:r,leafCount:c,leafDetail:l,leafSpreadRadius:m,leafColor:u}),d=new e.MeshStandardMaterial({color:i,roughness:.9,metalness:0,flatShading:!0}),f=new e.MeshStandardMaterial({color:u,roughness:.8,metalness:0,flatShading:!0});this.geometry=h,this.material=[d,f]}}class $t extends e.Mesh{constructor({radius:t=3,height:o=.6,widthSegments:n=64,heightSegments:a=16,phiStart:i=0,phiLength:r=Math.PI*2}={}){super(),this.geometry=new Ve({radius:t,height:o,widthSegments:n,heightSegments:a,phiStart:i,phiLength:r}),this.material=new e.MeshStandardMaterial({color:65280,flatShading:!0})}}class Wt extends e.Mesh{constructor({radius:t=N(5,Math.PI/10),widthSegments:o=64,heightSegments:n=32,phiStart:a=0,phiLength:i=Math.PI*2,thetaLength:r=Math.PI/10}={}){super(),this.geometry=new Fe({radius:t,widthSegments:o,heightSegments:n,phiStart:a,phiLength:i,thetaLength:r}),this.material=new e.MeshStandardMaterial({color:65280,flatShading:!0})}}function eo(s,{time:t=0,waveFrequency:o=.2,waveAmplitude:n=.5}={}){s.onBeforeCompile=a=>{a.uniforms.time={value:t},a.uniforms.waveFrequency={value:o},a.uniforms.waveAmplitude={value:n},a.vertexShader=`
|
|
39
39
|
uniform float time;
|
|
40
40
|
uniform float waveFrequency;
|
|
41
41
|
uniform float waveAmplitude;
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
|
|
50
50
|
return displaced;
|
|
51
51
|
}
|
|
52
|
-
`+
|
|
52
|
+
`+a.vertexShader,a.vertexShader=a.vertexShader.replace("#include <begin_vertex>",`
|
|
53
53
|
vec3 transformed = waterDisplacement(position, normal);
|
|
54
|
-
`),
|
|
54
|
+
`),s.userData.shader=a}}function to(s,t){s.userData.shader&&(s.userData.shader.uniforms.time.value+=t)}function oo(s,{time:t=0,intensity:o=1,direction:n=g.XYZ,scale:a=10}={}){s.onBeforeCompile=i=>{i.uniforms.time={value:t},i.uniforms.direction={value:n},i.uniforms.intensity={value:o},i.uniforms.scale={value:a},i.vertexShader=`
|
|
55
55
|
uniform float time;
|
|
56
56
|
uniform vec3 direction;
|
|
57
57
|
uniform float intensity;
|
|
@@ -82,12 +82,12 @@
|
|
|
82
82
|
|
|
83
83
|
return o4.y * d.y + o4.x * (1.0 - d.y);
|
|
84
84
|
}
|
|
85
|
-
`+
|
|
85
|
+
`+i.vertexShader,i.vertexShader=i.vertexShader.replace("#include <begin_vertex>",`
|
|
86
86
|
vec3 transformed = vec3(position);
|
|
87
87
|
float n = noise(transformed * scale + time);
|
|
88
88
|
transformed += normalize(direction) * n * intensity;
|
|
89
89
|
vec3 transformedNormal = normal;
|
|
90
|
-
`),
|
|
90
|
+
`),s.userData.shader=i}}function so(s,t){s.userData.shader&&(s.userData.shader.uniforms.time.value+=t)}const k={uniforms:{},vertexShader:`
|
|
91
91
|
varying vec3 vPosition;
|
|
92
92
|
void main() {
|
|
93
93
|
vPosition = position;
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
vec3 bottomColor = vec3(1.0, 1.0, 1.0); // Light white/gray for the horizon
|
|
102
102
|
gl_FragColor = vec4(mix(bottomColor, topColor, y), 1.0);
|
|
103
103
|
}
|
|
104
|
-
`},
|
|
104
|
+
`},ze={uniforms:{tDiffuse:{value:null},opacity:{value:1}},vertexShader:`
|
|
105
105
|
varying vec2 vUv;
|
|
106
106
|
void main() {
|
|
107
107
|
vUv = uv;
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
vec4 texel = texture2D(tDiffuse, vUv);
|
|
116
116
|
gl_FragColor = opacity * texel;
|
|
117
117
|
}
|
|
118
|
-
`},
|
|
118
|
+
`},A={uniforms:{topColor:{value:new e.Color(51)},bottomColor:{value:new e.Color(17)},offset:{value:33},exponent:{value:.6}},vertexShader:`
|
|
119
119
|
varying vec3 vWorldPosition;
|
|
120
120
|
void main() {
|
|
121
121
|
vec4 worldPosition = modelMatrix * vec4(position, 1.0);
|
|
@@ -132,5 +132,5 @@
|
|
|
132
132
|
float h = normalize(vWorldPosition + offset).y;
|
|
133
133
|
gl_FragColor = vec4(mix(bottomColor, topColor, max(pow(max(h, 0.0), exponent), 0.0)), 1.0);
|
|
134
134
|
}
|
|
135
|
-
`};class
|
|
135
|
+
`};class no extends e.Mesh{constructor(t=1e3){super(),this.geometry=new e.BoxGeometry(t,t,t),this.material=new e.ShaderMaterial({vertexShader:k.vertexShader,fragmentShader:k.fragmentShader,side:e.BackSide})}}class ro extends e.Mesh{constructor(t=1e3){super(),this.geometry=new e.SphereGeometry(t,32,15),this.material=new e.ShaderMaterial({vertexShader:A.vertexShader,fragmentShader:A.fragmentShader,uniforms:A.uniforms,side:e.BackSide})}}class ao extends e.Mesh{constructor(t=Math.PI*.49,o=2*Math.PI*.25,n=10,a=2,i=.005,r=.8){super();const c=new Xe.Sky;c.scale.setScalar(45e4),this.add(c);const l=c.material.uniforms;l.turbidity.value=n,l.rayleigh.value=a,l.mieCoefficient.value=i,l.mieDirectionalG.value=r,this.skyUniforms=l,this.sunPosition(t,o)}sunPosition(t,o){const n=new e.Vector3,a=this.skyUniforms;n.setFromSphericalCoords(1,t,o),a.sunPosition.value.copy(n)}}const co=s=>{const t=new Uint8Array(4*s*s);for(let n=0;n<s*s;n++){const a=n*4,i=(n%s^Math.floor(n/s))&1?255:0;t[a]=i,t[a+1]=i,t[a+2]=i,t[a+3]=255}const o=new e.DataTexture(t,s,s,e.RGBAFormat,e.UnsignedByteType);return o.wrapS=e.RepeatWrapping,o.wrapT=e.RepeatWrapping,o.minFilter=e.NearestFilter,o.needsUpdate=!0,o};function io(s){const t=new e.Box3().setFromObject(s),o=new e.Vector3;t.getCenter(o),s.position.sub(o)}function lo(s,t=new e.Vector3(0,0,0)){const o=new e.Box3().setFromObject(s),n=new e.Vector3;o.getCenter(n);const a=new e.Vector3().subVectors(t,n);s.position.add(a)}function mo(s){s.computeBoundingBox();const o=s.boundingBox.getCenter(new e.Vector3);s.translateX(-o.x),s.translateY(-o.y),s.translateZ(-o.z)}function uo(s,t,o){return Math.max(0,Math.min(1,(s-t)/(o-t)))}function ho(s,t,o,n,a,i=20,r=0,c=1){const l=[];for(let m=0;m<=i;m++){const u=m/i,h=s(uo(u,r,c)),d=t+h*(o-t),f=n+u*(a-n);l.push(new e.Vector2(d,f))}return l}function Mo(s){const o=new e.Box3().setFromObject(s).getCenter(new e.Vector3);s.translateX(-o.x),s.translateY(-o.y),s.translateZ(-o.z),s.updateMatrixWorld(!0)}function fo(s){s.geometry.computeBoundingBox();const o=s.geometry.boundingBox.getCenter(new e.Vector3);s.geometry.translate(-o.x,-o.y,-o.z)}class yo{static dispose(t){t==null||t.traverse(o=>{o.geometry&&o.geometry.dispose(),o.material&&(Array.isArray(o.material)?o.material.forEach(n=>n.dispose()):o.material.dispose())})}static fadeBetween(t,o,n,a,i=1){const r=new He.EffectComposer(t),c=new U.RenderPass(n,o);r.addPass(c);const l=new Ze.ShaderPass(ze);l.uniforms.opacity.value=1,r.addPass(l);let m=null;function u(d){m||(m=d);const M=(d-m)/1e3/i;l.uniforms.opacity.value=Math.max(1-M,0),M<1?(r.render(),requestAnimationFrame(u)):(r.passes[0]=new U.RenderPass(a,o),m=null,requestAnimationFrame(h))}function h(d){m||(m=d);const M=(d-m)/1e3/i;l.uniforms.opacity.value=Math.min(M,1),M<1&&(r.render(),requestAnimationFrame(h))}requestAnimationFrame(u)}}exports.Beaker=Tt;exports.BeakerGeometry=Pe;exports.BifurcatedStaircaseGeometry=nt;exports.Bone=Kt;exports.BoneGeometry=Ee;exports.Book=ft;exports.BookGeometry=V;exports.Bookshelf=bt;exports.BookshelfGeometry=be;exports.Bottle=kt;exports.Bubbling=et;exports.BunsenBurner=Vt;exports.Burst=Zt;exports.BurstShape=_e;exports.Candle=It;exports.CrossHeadstone=yt;exports.CrossHeadstoneGeometry=we;exports.DaySkybox=no;exports.Desk=Bt;exports.DioramaGeometry=rt;exports.Direction=g;exports.Easing=We;exports.ElectricPanel=Ot;exports.ErlenmeyerFlask=Ft;exports.ErlenmeyerFlaskGeometry=Ce;exports.Falloff=P;exports.FenceColumn=St;exports.FenceColumnGeometry=ve;exports.Flask=Nt;exports.Gear=Yt;exports.GearShape=Ue;exports.Heart=Qt;exports.HeartShape=qe;exports.Hill=$t;exports.HillGeometry=Ve;exports.LShapedStaircaseGeometry=at;exports.Lantern=Et;exports.LeverPanel=_t;exports.Mausoleum=pt;exports.Microscope=Ut;exports.Moon=Mt;exports.MortarAndPestle=qt;exports.MortarGeometry=Ae;exports.MossyRocks=Pt;exports.Mound=Wt;exports.MoundGeometry=Fe;exports.NightSkybox=ro;exports.ObeliskHeadstone=wt;exports.ObeliskHeadstoneGeometry=xe;exports.Rock=Ct;exports.RockGeometry=Ie;exports.Rocks=At;exports.RoundedHeadstone=xt;exports.RoundedHeadstoneGeometry=Ge;exports.SceneUtils=yo;exports.SimpleLeafGeometry=lt;exports.SpiralStaircaseGeometry=ct;exports.SpiralTube=Lt;exports.SquareHeadstone=Gt;exports.SquareHeadstoneGeometry=Se;exports.StaircaseGeometry=it;exports.Stand=zt;exports.StandGeometry=Te;exports.Star=jt;exports.StarShape=Le;exports.TeslaCoil=Rt;exports.TestTube=Dt;exports.TestTubeGeometry=T;exports.TestTubeRack=Xt;exports.Tree=Jt;exports.TreeGeometry=Ne;exports.TwilightSkybox=ao;exports.WineBottle=Ht;exports.WineBottleGeometry=ke;exports.WroughtIronBar=vt;exports.WroughtIronBarGeometry=F;exports.WroughtIronFence=gt;exports.WroughtIronFenceGeometry=ge;exports.addNoiseDisplacement=oo;exports.addWaterDisplacement=eo;exports.capHeightFromRadius=Oe;exports.capWidthFromRadius=ut;exports.cartesianToSpherical=dt;exports.centerGroup=io;exports.centerGroupAtTarget=lo;exports.centerInstancedMesh=mo;exports.centerMesh=Mo;exports.centerMeshGeometry=fo;exports.checkerboardTexture=co;exports.circularEaseIn=se;exports.circularEaseInOut=re;exports.circularEaseOut=ne;exports.concave=ie;exports.convex=le;exports.cubicEaseIn=H;exports.cubicEaseInOut=Y;exports.cubicEaseOut=Z;exports.daySkyShader=k;exports.displacementBrush=Ye;exports.exponentialEaseIn=ee;exports.exponentialEaseInOut=oe;exports.exponentialEaseOut=te;exports.fadeShader=ze;exports.flattenBrush=Qe;exports.gaussian=de;exports.interpolateCurve=ho;exports.inverse=he;exports.linear=ae;exports.logarithmic=me;exports.logarithmicRandomMax=fe;exports.logarithmicRandomMin=ye;exports.nightSkyShader=A;exports.noiseBrush=je;exports.quadraticEaseIn=R;exports.quadraticEaseInOut=X;exports.quadraticEaseOut=D;exports.quarticEaseIn=Q;exports.quarticEaseInOut=K;exports.quarticEaseOut=j;exports.quinticEaseIn=J;exports.quinticEaseInOut=W;exports.quinticEaseOut=$;exports.radiusFromCapHeight=mt;exports.radiusFromCapWidth=N;exports.randomFloat=Me;exports.randomInteger=tt;exports.randomTransformVertices=Be;exports.rowOfBooksByCount=ot;exports.rowOfBooksByLength=st;exports.rowOfBooksByScales=O;exports.sineEaseIn=q;exports.sineEaseInOut=z;exports.sineEaseOut=L;exports.smoothBrush=Ke;exports.smoothstep=ce;exports.sphericalToCartesian=ht;exports.spikeBrush=Je;exports.squareRoot=ue;exports.twistBrush=$e;exports.updateNoiseDisplacementTime=so;exports.updateWaterDisplacementTime=to;
|
|
136
136
|
//# sourceMappingURL=index.cjs.js.map
|