
Unity raytracer
A simple raytracer using Unity ComputeShaders
​
For testing unity's compute shaders and measuring the performance of a raytracer in one, i built a simple raytracer which could be used to test the impact of certain parameters on performance, such as the amount of rays per pixel and the maximum amount of bounces.

Realistic lighting
A ray is cast from the camera from every pixel, and any light sources picked up along the way are added to the surfaces hit by the ray. Essentially reversing the path a normal photon takes, this allows for the mimicing real lighting phenomena

Surface settings
Objects in the scene can be given different finishes, by varying the amount of roughness, specular reflection and emission.

Reflections galore
by increasing the maximum number of bounces the stacking of the realistic reflections can create some interesting effects.