Skip to content

tvh/raytracinginoneweekend-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple Raytracer written in Haskell. It is mostly the result of transcribing the Raytracer described in Ray Tracing in One Weekend.

The initial implementation used Float for the points and vectors, but here I quickly discovered a downside of using this type:

scene using float

The Same Scene rendered using Double:

scene using double

I didn't do a thorough benchmark, but just judging from a single run there doesn't seem to be a big difference.

About

A simple Raytracer written in Haskell based on "Ray Tracing in One Weekend"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors