Based on the book Ray tracing in One Weekend.
Work in progress.
Uses as many cores as available to speed up rendering. Image is split up vertically in slices:
- number of slices = number of cores
- slice height = image height / number of slices
Precalculates lookup tables with random values. This significantly speeds up the raytracing algorithm as the real random generator is pretty slow.