Asset Library
1,738 video parts you can take today, and 557 more to learn from. Find one you like, then open it for the details.
Showing 4 of 2,295Show everything
From Three.js Game Skills
In words · 4
Loop.tsA 30-line animation loop: requestAnimationFrame, delta in seconds capped at 0.05, update then render. It reads the browser's clock; to…three.js · MITEdit, render, publishRenderer.tscreateRenderer (antialias, sRGB output, ACES tone mapping at 1.05 exposure, PCF shadows) and resizeRenderer, which keeps canvas size, pixel…three.js · MITEdit, render, publishrandom.ts (seeded random)mulberry32 in nine lines: createSeededRandom(seed) returns a function that gives the same sequence every time. The thing to use in place of…three.js · MITEdit, render, publishdispose.tsdisposeObject3D walks a three.js object and frees its geometries, materials and every texture on them. Use it when a scene is torn down so…three.js · MITEdit, render, publish