🌍 Public
Viewing a saved revision (read-only)
8dd91fa6d29e48f2a5391f96a5638a67
div
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 description