moonpool/README.md
Samrat Man Singh 5e44c0b22a Add Usage notes
2017-11-15 14:52:09 +05:45

599 B

rayml

Example rendered scene

A raytracer written in OCaml. It supports diffuse("matte") and reflective("metallic") surfaces.

The design of the software roughly follows Peter Shirley's mini-book series Raytracing in One Weekend which presents a raytracer in C++. I've adopted the programming style to suit the OCaml's functional style.

Usage

You need to have OCaml installed. Running make display will compile the program and renders the hard-coded scene displayed above.