Skip to content

This is a real-time ray tracer running in the terminal using ratatui, and running on the browser by ratzilla backend. It supports Lambertian, Metal, and Dielectric materials, full BVH acceleration, real-time camera movement, and ASCII-based shading.

Controls:

wasd: move in four directions

q: move up e: move down

Online wasm demo

TODO:

wgpu acceleration

Spare Voxel Octree

Reference:

Ray Tracing in One Weekend

Ray Tracing: The Next Week