Skip to content

Commit 5798798

Browse files
committed
Reduce rotation speed of particles in WebGLBackground component for smoother animation
1 parent e46ae4b commit 5798798

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/WebGLBackground.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ export function WebGLBackground() {
5656
const animate = () => {
5757
requestAnimationFrame(animate);
5858

59-
particlesMesh.rotation.y += 0.001;
60-
particlesMesh.rotation.x += 0.001;
59+
particlesMesh.rotation.y += 0.0003;
60+
particlesMesh.rotation.x += 0.0003;
6161

6262
// Smooth camera movement based on mouse position
6363
camera.position.x += (mouseX * 0.5 - camera.position.x) * 0.05;

0 commit comments

Comments
 (0)