Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of ThreeJS Starter

Public visualization

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

Comments

Sign in to join the discussion.

MIT Licensed