Skip to content

edgao/raytracer-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raytrace

Generates raytraced PNG images. Supports spheres and triangles because they were the easiest shapes to implement.

Compiling

stack build

This will produce an executable appropriate for your system somewhere in stack-work/dist.

Running

raytrace-exe <config path> <output path>

For example:

raytrace-exe examples/infinity-mirror.yaml ~/Desktop/infinity-mirror.png

On my machine, inifinity-mirror.yaml takes about 20 seconds to finish running. Reducing the image dimensions is the biggest influence on runtime.

Releases

No releases published

Packages

No packages published