Show HN: a Rust ray tracer that runs on any GPU – even in the browser
Hacker News (score: 26)Description
The initial goal was just to render a simple 3D scene in the browser at a reasonable frame rate. It evolved into a small renderer that can: • Run locally or on the web using wgpu and WebAssembly • Perform mesh rendering with a Bounding Volume Hierarchy (BVH) for acceleration • Simulate both direct and indirect illumination for photorealistic results • Be deployed easily as a free web demo using GitHub Pages
The project is far from perfect, but it’s been a fun way to dig deeper into graphics programming and learn more about Rust’s ecosystem. I’m also planning to experiment with Rust for some ML projects next.
GitHub: https://github.com/tchauffi/rust-rasterizer Web demo (desktop browsers): https://tchauffi.github.io/rust-rasterizer/
Would love feedback from anyone who’s built similar projects or has experience with wgpu or ray tracing in Rust.
More from Hacker
Xqerl – Erlang XQuery 3.1 Processor
Xqerl – Erlang XQuery 3.1 Processor
GitHub Issues
GitHub Issues
OpenZL: An open source format-aware compression framework
OpenZL: An open source format-aware compression framework <a href="https://github.com/facebook/openzl" rel="nofollow">https://github.com/facebook/openzl</a><p><a href="https://arxiv.org/abs/2510.03203" rel="nofollow">https://arxiv.org/abs/2510.03203</a><p><a href="https://openzl.org/" rel="nofollow">https://openzl.org/</a>
Docker for Developers: Essential Commands in One Cheatsheet
Docker for Developers: Essential Commands in One Cheatsheet
No other tools from this source yet.