rust-rasterizer

A rasterizer implementation in Rust

Try it online: Live WebGPU Raytracer

Features

This project includes three different raytracing implementations:

  1. CPU Raytracer - Software-based raytracing running on the CPU
  2. GPU Raytracer - Hardware-accelerated raytracing using GPU compute shaders (offline rendering)
  3. Live GPU Raytracer - Real-time interactive GPU raytracer with camera controls

Usage

CPU Raytracer (Software Rendering)

The CPU version renders scenes using traditional CPU-based raytracing and outputs to a PPM image file.

# Build and run (outputs to stdout, redirect to file)
cargo run --release > output.ppm

# Or build first, then run
cargo build --release
./target/release/rust-...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help