Skip to content

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

License

Notifications You must be signed in to change notification settings

tvh/raytracinginoneweekend-hs

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

No packages published