Peter Shirley's Ray Tracing in One Weekend written in ReasonML.
Q: Why did you decide to do this?
A: Because Reasonml/Ocaml are super cool!
Q: No, but... why?
A: I know, writing a Whitted ray tracer in a functional, garbage-collected language doesn't sound very reasonable (pun not intended). However, I believe this is a great project to get acquainted with a new language, which is exactly what this is about :)
Q: How can I play around with this?
A: You can select a scene from
Examples.re
and replace the invocation inMain.re
, or use the CLI parameters as seen inMain.re
. To build/run, executemake build
and then run the executablereasonably-traced
under_build/install/default/bin
. The output goes by default to a file calledreasonably_traced.ppm
.