A raytracer written in OCaml
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src
.merlin
Makefile
README.md

README.md

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.