Skip to content

cjallen88/ocaml-raytracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocaml-raytracer

A raytracer implementation writen in OCaml

This is a toy raytracer implementation, ported from my initial Common Lisp implementation.

It uses dune, you can test this by running

dune exec ./raytracer.exe

It currently implements:

  • spheres only
  • reflection
  • refraction
  • shadows
  • diffuse & specular lighting

I plan to implement:

  • implement other object types, including meshes
  • fresnel ration based refraction / reflection
  • file based configuration

Here is a converted PNG of the image it produces:

Raytraced Image

About

A raytracer implementation writen in OCaml

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages