glCube is a WebGL-based 3D Rubik's Cube simulator that offers rich interactive features and visual effects. This project supports multiple material modes, camera controls, animations, and a skybox background.
- Rotation and Animation: Supports face rotation animations and provides a random scramble feature.
- Material Modes:
- Solid Color Mode
- Texture Mode
- Normal Map Mode
- Reflection Mode
- Auto-Rotation: Enables automatic random rotation.
- First-Person Camera:
- Supports mouse drag for adjusting the view.
- Supports zooming with the scroll wheel.
- Orbit Camera:
- Supports mouse drag for rotation.
- Supports zooming with the scroll wheel.
- Supports resetting the view.
- Skybox Background: Supports cube map textures as the background.
- Platform Rendering: Renders a platform below the Rubik's Cube.
- Mini Cube Orbiting: Enables orbiting mini cubes effect.
| Shortcut | Function |
|---|---|
C |
Switch camera mode (First-Person/Orbit) |
B |
Switch background mode (Solid Color/Skybox) |
M |
Toggle reflection effect |
E |
Enable/Disable auto-rotation |
T |
Switch material mode |
O |
Enable/Disable mini cube orbiting |
- Modern browser (supports WebGL)
- Clone this repository:
git clone https://github.com/your-repo/glCube.git