Francesco · Eresh Engine

@ereshengine.org

Building Eresh Engine: an open-source Rust game engine you can open in your browser. https://ereshengine.org/

I compiled my Rust game engine to WebAssembly so the editor runs in a browser tab. The renderer needed one changed line. Everything around it is what hurt 🧵 1/ 10 of my 24 crates have zero web-specific code: ECS, math, scene, physics, animation, input. Same source. 👇

Bild

"Forward+" sounds fancy but the core idea is simple. A thread on the trick Eresh uses to handle lots of dynamic lights 🧵 1/ Classic forward shading tests every light against every pixel. Add 200 lights and that's 200× the work per pixel. It melts. 👇

Eresh Engine editor viewport: a floor lit by roughly multple dynamic lights, demonstrating the scene used to test Forward+ light culling.