Commodity thread pools and concurrency primitives for OCaml 5
Find a file
Samrat Man Singh 22776bf4ff Grammar fix
2017-11-16 20:33:38 +05:45
examples Update README; code style changes 2017-09-03 23:40:30 +05:45
src Remove DummyNone material; start work on dielectric material 2017-11-15 16:12:12 +05:45
.merlin Add .merlin 2016-03-10 21:15:10 +05:45
Makefile Move makefile to toplevel dir 2017-09-03 23:51:26 +05:45
README.md Grammar fix 2017-11-16 20:33:38 +05:45

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 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.