Skip to content

minimario/ray-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ray Tracer

3D renderer written in OCaml, based on The Ray Tracer Challenge by Jamis Buck.

Getting started

projects/ contains programs that write ppm image files to images/.

make silhouette

Run tests with make runtest. Uses OUnit2.

Library

in src

  • canvas.ml: utilities for writing ppm files
  • color.ml
  • intersections.ml
  • matrix.ml
  • rays.ml
  • reflection.ml: interaction between light and surface
  • sphere.ml
  • transformation.ml: matrices for rotation, etc.
  • tuple.ml: tuples, which are sometimes treated as column matrices

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •