Skip to main content

Ray tracing in one weekend in go

· One min read

I had the Ray Tracing in One Weekend book in my todo list for a long time and I had finally the time to go through it.

There is not much to say, except than rather unusually I used go instead of C# to go through the book. The code is a rather simple port from the C++ original, my only addition was a render method that used goroutines and channels to speed up the execution. It works fairly well and tops up the CPUs on my desktop machine.

The repo contains the image with 10 samples per pixel and the image with 100 samples per pixel. The quality difference is evident! To check it out you need to clone the repo, or download the raw files, and have a ppm image viewer installed.