A small Three.js experiment that renders a field of animated grass with:
- Wind sway
- Cursor interaction (grass bends away from the mouse)
- Touch interaction for mobile
- Sky background
- GLB grass blade model
-
Install dependencies: npm install
-
Start the development server: npm run dev
-
Open the project in your browser: http://localhost:5173
main.js— main Three.js scene, animation, interaction logicpublic/sky.jpeg— sky background imagepublic/grassblade6.glb— grass blade modelindex.html— canvas containerpackage.json— Vite config and scripts
- Grass bends away from the cursor using raycasting
- Wind sway is procedural and blended with interaction
- Works on desktop and mobile