~turminal/raytracing

A simple ray tracer in Hare
16bf2b18 — Bor Grošelj Simić 7 months ago
rng: avoid recomputing a constant every time
e9b9b57b — Bor Grošelj Simić 7 months ago
update README.md

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~turminal/raytracing
read/write
git@git.sr.ht:~turminal/raytracing

You can also use your local clone with git send-email.

#Ray tracing in Hare

An implementation of the ray tracer from raytracing.github.io in Hare.

An example generated by this code

#Status

Everything from the first book is implemented. I intend to read through and implement the other two eventually as well.

#Try it out!

The code prints out the output image to stdout in ppm format. You can convert it into something else with imagemagick or just pipe it directly into a viewer that knows about ppm.