🌍 Public
Viewing a saved revision (read-only)
ce147b653c84497385b5ca5beb8f0d7a
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