Go based Raytracer inspired from:
- http://www.cs.utah.edu/~aek/code/card.cpp
- http://fabiensanglard.net/rayTracing_back_of_business_card/index.php
The C++ version (ref/rays.cpp) is optimized and mutli-threaded.
List of all Go optimizations applied: https://kidoman.com/programming/go-getter.html Second run with C++ optimized: https://kidoman.com/programming/go-getter-part-2.html
- go get -u github.com/kid0m4n/gorays
- time gorays > gorays.ppm
- open gorays.ppm (helps to have Gimp installed)
- c++ -std=c++11 -O3 -pthread -o crays ref/rays.cpp
- time ./crays > crays.ppm
- open crays.ppm