Skip to main content
100%

Fork of ThreeJS Starter

✓ Published1🌍 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
MIT Licensed

Similar vizzes