A WebGPU implementation of Peter Shirley's ray tracing books. An interactive renderer which allows you to play around with the camera and renderer settings in real-time.
$ cargo run --release
More details about the WebGPU implementation is available in the following series of blog posts.
Weekend raytracing with wgpu, part 2
* Adds texture support from "Ray Tracing: The Next Week" and a physically-based sky based on the Hosek-Wilkie model.
* Describes the global texture lookup system implemented in WGSL.
Weekend raytracing with wgpu, part 1
* A straightforward fragment shader implementation of the "Ray Tracing In One Weekend" book.
* Notes on porting RNG, recursive rendering function and more to WGSL.
assets/moon.jpeg * NASA's Scientific Visualization Studio * https://svs.gsfc.nasa.gov/4720
assets/earthmap.jpeg * https://raytracing.github.io/images/earthmap.jpg
assets/sun.jpeg * https://www.solarsystemscope.com/textures/
$ claude mcp add weekend-raytracer-wgpu \
-- python -m otcore.mcp_server <graph>