A simple 3D rotating cube built using @react-three/fiber and Three.js. The cube rotates along the X and Y axes with a smooth animation, utilizing meshNormalMaterial for a colorful shading effect.
🎥 Watch the rotating cube in action:
✅ React (18.x)
✅ @react-three/fiber - React renderer for Three.js
✅ @react-three/drei - Useful helpers for Three.js
✅ Three.js - WebGL-powered 3D graphics
Clone the repository and install dependencies:
git clone https://github.com/develop-build/threejs-war.git
cd rotating-cube
npm install
npm run dev