Pew!
A multi-threaded raytracer following https://raytracing.github.io/
Dependencies
sdl2
sdl2_ttf
Build
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release
Run
# make sure that the asset folder is on the same path
./build/src/pew/pew
Controls
<SPACE> Pause rendering
u Show final render
i Show materials as colors
s Save render in current state at ./shot.png
WASM
Wasm is currently wip on the threadless branch.
Click here for a live demo:
https://about.evysgarden.org/raytrace/main.html