Loop.ts
three.js and WebGL · Edit, render, publish · MIT
- What it does
A 30-line animation loop: requestAnimationFrame, delta in seconds capped at 0.05, update then render. It reads the browser's clock; to render frame by frame, call your update with a fixed delta in its place.
- Get it
new Loop((dt, elapsed) => update(dt, elapsed), () => render()).start();
- Needs (the whole pack)
Nothing to read the skills. To run what they build: Node and npm, Python 3 for the helper scripts, and Chromium through Playwright for the inspector and tests. Optional and paid: Tripo, Gemini and ElevenLabs keys for the three generator skills.
- License
MIT
- From