🌍 Public
Viewing a saved revision (read-only)
c9212273b1514770aa201b5d0ae90527
ThreeJS Starter
A Three.js scene displays a single blue cube rotating automatically in 3D space. The cube uses a `MeshPhongMaterial` that responds to both ambient and directional lighting, showcasing interactive orbit controls for drag-to-rotate and scroll-to-zoom. The animation runs via `requestAnimationFrame` with WebGL rendering on a canvas element. The code imports Three.js and its `OrbitControls` addon through import maps, with a responsive resize handler updating camera aspect and renderer size.
AI-generated descriptionThreeJS Starter.
- Uses import maps!