enjmiah / ray-tracer

📷 Functional path tracer

Home Page:https://wiki.ubc.ca/Course:CPSC312-2018-Ray-tracer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

📷 Functional path tracer

https://wiki.ubc.ca/Course:CPSC312-2018-Ray-tracer

License:MIT License


Languages

Language:Haskell 100.0%