This commit is contained in:
Simon Cruanes 2023-06-08 15:27:37 -04:00
parent 9218ba8fe6
commit a3cc55c20d
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
4 changed files with 0 additions and 29 deletions

View file

@ -1,2 +0,0 @@
S src
PKG core

View file

@ -1,9 +0,0 @@
build:
ocamlbuild -use-ocamlfind -package core -tag thread -I src/ raytracer.native
chmod +x raytracer.native
clean:
ocamlbuild -clean
rm out.ppm
display: build
./raytracer.native
display out.ppm

View file

@ -1,18 +0,0 @@
# rayml
![Example rendered scene](examples/demo.jpg)
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][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.
[weekend]: http://in1weekend.blogspot.com/2016/01/ray-tracing-in-one-weekend.html

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB