Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ThreeJS Starter

Public visualization

Viewing a saved revision (read-only)

380b4f0489504e0e89a52531f7eafb50

Fork of ThreeJS Starter

0 stars1🌍 Public
PPremkumar
Last edited Aug 7, 2025
Created on Aug 7, 2025
Forked from 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