diff --git a/assets/index-BYWYpwQ7.js b/assets/index-DQ1G1iyV.js similarity index 99% rename from assets/index-BYWYpwQ7.js rename to assets/index-DQ1G1iyV.js index 6e9c061..7cb3c7f 100644 --- a/assets/index-BYWYpwQ7.js +++ b/assets/index-DQ1G1iyV.js @@ -7823,7 +7823,7 @@ void main() { #include #include <${S$>=154?"colorspace_fragment":"encodings_fragment"}> `)}}}const uye=se.forwardRef((n,e)=>{const[t]=se.useState(()=>new cye(null));return se.createElement("primitive",Na({},n,{object:t,ref:e,attach:"material"}))}),hye=se.forwardRef(({children:n,enabled:e=!0,speed:t=1,rotationIntensity:i=1,floatIntensity:r=1,floatingRange:s=[-.1,.1],autoInvalidate:o=!1,...a},l)=>{const c=se.useRef(null);se.useImperativeHandle(l,()=>c.current,[]);const u=se.useRef(Math.random()*1e4);return Ad(h=>{var d,f;if(!e||t===0)return;o&&h.invalidate();const v=u.current+h.clock.getElapsedTime();c.current.rotation.x=Math.cos(v/4*t)/8*i,c.current.rotation.y=Math.sin(v/4*t)/8*i,c.current.rotation.z=Math.sin(v/4*t)/20*i;let _=Math.sin(v/4*t)/10;_=PI.mapLinear(_,-.1,.1,(d=s==null?void 0:s[0])!==null&&d!==void 0?d:-.1,(f=s==null?void 0:s[1])!==null&&f!==void 0?f:.1),c.current.position.y=_*r,c.current.updateMatrix()}),se.createElement("group",a,se.createElement("group",{ref:c,matrixAutoUpdate:!1},n))});let sh,Tg;const dye=se.createContext(null),xz=new Rt,Sz=new j,fye=se.forwardRef(({children:n,range:e,limit:t=1e3,...i},r)=>{const s=se.useRef(null);se.useImperativeHandle(r,()=>s.current,[]);const[o,a]=se.useState([]),[[l,c,u]]=se.useState(()=>[new Float32Array(t*3),Float32Array.from({length:t*3},()=>1),Float32Array.from({length:t},()=>1)]);se.useEffect(()=>{s.current.geometry.attributes.position.needsUpdate=!0}),Ad(()=>{for(s.current.updateMatrix(),s.current.updateMatrixWorld(),xz.copy(s.current.matrixWorld).invert(),s.current.geometry.drawRange.count=Math.min(t,e!==void 0?e:t,o.length),sh=0;sh({getParent:()=>s,subscribe:d=>(a(f=>[...f,d]),()=>a(f=>f.filter(v=>v.current!==d.current)))}),[]);return se.createElement("points",Na({userData:{instances:o},matrixAutoUpdate:!1,ref:s,raycast:()=>null},i),se.createElement("bufferGeometry",null,se.createElement("bufferAttribute",{attach:"attributes-position",count:l.length/3,array:l,itemSize:3,usage:Gh}),se.createElement("bufferAttribute",{attach:"attributes-color",count:c.length/3,array:c,itemSize:3,usage:Gh}),se.createElement("bufferAttribute",{attach:"attributes-size",count:u.length,array:u,itemSize:1,usage:Gh})),se.createElement(dye.Provider,{value:h},n))}),pye=se.forwardRef(({children:n,positions:e,colors:t,sizes:i,stride:r=3,...s},o)=>{const a=se.useRef(null);return se.useImperativeHandle(o,()=>a.current,[]),Ad(()=>{const l=a.current.geometry.attributes;l.position.needsUpdate=!0,t&&(l.color.needsUpdate=!0),i&&(l.size.needsUpdate=!0)}),se.createElement("points",Na({ref:a},s),se.createElement("bufferGeometry",null,se.createElement("bufferAttribute",{attach:"attributes-position",count:e.length/r,array:e,itemSize:r,usage:Gh}),t&&se.createElement("bufferAttribute",{attach:"attributes-color",count:t.length/r,array:t,itemSize:3,usage:Gh}),i&&se.createElement("bufferAttribute",{attach:"attributes-size",count:i.length/r,array:i,itemSize:1,usage:Gh})),n)}),mye=se.forwardRef((n,e)=>n.positions instanceof Float32Array?se.createElement(pye,Na({},n,{ref:e})):se.createElement(fye,Na({},n,{ref:e})));function Rw({all:n,scene:e,camera:t}){const i=Wr(({gl:o})=>o),r=Wr(({camera:o})=>o),s=Wr(({scene:o})=>o);return se.useLayoutEffect(()=>{const o=[];n&&(e||s).traverse(c=>{c.visible===!1&&(o.push(c),c.visible=!0)}),i.compile(e||s,t||r);const a=new NI(128);new BI(.01,1e5,a).update(i,e||s),a.dispose(),o.forEach(c=>c.visible=!1)},[]),null}/** - * postprocessing v6.36.1 build Mon Sep 02 2024 + * postprocessing v6.36.2 build Tue Sep 10 2024 * https://github.com/pmndrs/postprocessing * Copyright 2015-2024 Raoul van RĂ¼schen * @license Zlib diff --git a/index.html b/index.html index f35da65..6ba2566 100644 --- a/index.html +++ b/index.html @@ -88,7 +88,7 @@ }) } - +