🌍 Public
Viewing a saved revision (read-only)
380b4f0489504e0e89a52531f7eafb50
Fork of ThreeJS Starter
A rotating blue cube animates in a 3D scene, responding to directional and ambient lighting. Built with Three.js, the example sets up a WebGL renderer on a canvas, a perspective camera, and orbit controls with damping. The cube's material uses a MeshPhongMaterial with shininess, while automatic rotation and user interaction via controls update the view. The code also handles window resizing by adjusting camera aspect and renderer dimensions.
AI-generated description