div
✓ Published0🌍 Public
This example shows a single, solid blue cube rendered in three-dimensional space, slowly rotating on its x and y axes. The scene includes ambient and directional lighting to create highlights and depth on the cube's surfaces. Built with Three.js using its WebGL renderer, it leverages `MeshPhongMaterial`, `AmbientLight`, and `DirectionalLight` for the visual style, while `OrbitControls` enable interactive camera rotation. The cube's automatic rotation is driven by an animation loop that updates its transform each frame.
AI-generated descriptionMIT Licensed