Renderer.ts
three.js and WebGL · Edit, render, publish · MIT
- What it does
createRenderer (antialias, sRGB output, ACES tone mapping at 1.05 exposure, PCF shadows) and resizeRenderer, which keeps canvas size, pixel ratio and camera aspect in step and caps the device pixel ratio.
- Get it
const renderer = createRenderer(canvas); resizeRenderer(renderer, camera, 2);
- 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