Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

enjmiah/ray-tracer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ray-tracer

Build Status

A path tracer written in Haskell, based on Peter Shirley's notes.

Building

To build the code, run

cabal new-build

To run the ray-tracer, use

cabal new-run ray-tracer

To pass options, place them after a --:

cabal new-run ray-tracer -- --samples 64

To run in parallel on j cores, call with +RTS -Nj, where j is an integer:

cabal new-run ray-tracer -- +RTS -N4

Note: if rendering through ghci, it is recommended that you compile the Trace module at least with cd src && ghc -c -dynamic Trace.hs. This can improve runtimes substantially.

Acknowledgements

See NOTICES.

Releases

No releases published

Packages

No packages published