EXPERIMENT 05

3D Scene

Three.js geometry that rotates and follows your cursor in 3D space. Immersive.

Move your mouse over the canvas — the geometry tracks it in 3D space.

Mouse move
Rotate geometry
Click + drag
Orbit camera

Stack

@react-three/fiber mounts Three.js into React's render loop. useFrame hooks give per-frame control. MeshDistortMaterial from drei adds vertex shader distortion. Mouse position is tracked on the container element and passed via ref to avoid React re-renders.