Skip to main content
100%

div

✓ Published0🌍 Public
Rrdivyaa27@gmail.com
Last edited Aug 7, 2025
Created on Aug 7, 2025
Forked from 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
MIT Licensed

Similar vizzes