GitHub - lisyarus/webgpu-raytracer: A software raytracing engine written in WebGPU
About
This is a GPU "software" raytracer (i.e. using manual ray-scene intersections and not RTX) written using the WebGPU API. It expects a single glTF scene as input. It supports flat-colored and textured materials with albedo, normal, and material maps. It doesn't support refraction (yet).
There are a bunch of test scenes in the test_scenes directory.
It uses wgpu-native WebGPU implementation, and SDL2 to create a window to render to.
Usage
To run the program, first build it (see instructions ...
Read more at github.com