diff --git a/app/web/src/components/Hero/AssetWithGooey.tsx b/app/web/src/components/Hero/AssetWithGooey.tsx index 8a45ce7..dc8f83f 100644 --- a/app/web/src/components/Hero/AssetWithGooey.tsx +++ b/app/web/src/components/Hero/AssetWithGooey.tsx @@ -43,8 +43,7 @@ export default function AssetWithGooey({ + ) } @@ -73,22 +73,22 @@ function Gooey() { const dist = Math.random() * 3 + 2.5 const x = randomSign(Math.random() * dist) const y = randomSign(Math.sqrt(dist * dist - x * x)) - const z = randomSign(Math.random() * 3) + const z = randomSign(Math.random() * 2) const position: [number, number, number] = [x, z, y] const size = Math.random() * 0.8 + 0.1 - const distort = Math.random() * 0.8 + 0.1 - const speed = (Math.random() * 0.8) / size / size + 0.1 + const distort = (size > .1) ? Math.random() * .6 * size + 0.2 : 0 + const speed = (size > .1) ? (Math.random() * 0.8) / size / size + 0.1 : 0 return { position, size, distort, speed } }) const secondSet = Array.from({ length: 5 }).map((_, index) => { const dist = Math.random() * 3 + 1.5 const x = randomSign(Math.random() * dist) const y = randomSign(Math.sqrt(dist * dist - x * x)) - const z = randomSign(Math.random() * 3) + const z = randomSign(Math.random() * 2) const position: [number, number, number] = [x, z, y] const size = Math.random() * 0.2 + 0.05 - const distort = Math.random() * 0.8 + 0.1 - const speed = (Math.random() * 0.5) / size / size + 0.1 + const distort = (size > .1) ? Math.random() * .8 * size + 0.2 : 0 + const speed = (size > .1) ? (Math.random() * 0.5) / size / size + 0.1 : 0 return { position, size, distort, speed } }) return [...firstSet, ...secondSet]