🌍 Public
Viewing a saved revision (read-only)
ff5ce93c4ae54e2f9de1118364c40da7
React & D3 Starter
A rotating torus knot rendered in three.js WebGL demonstrates a React component lifecycle. The App component instantiates a Three.js scene, perspective camera, and WebGL renderer, appending the canvas to a ref-mounted div. A `MeshPhongMaterial` with a neon specular highlight receives directional lighting, while the animation loop increments rotation on both axes. The example integrates React with imperative Three.js setup, using `useEffect` for scene creation and cleanup.
AI-generated descriptionmessing around in three.js
MIT Licensed