Raytracing sample app writting in Swift using Metal's newest raytracing APIs. Runs on macOS
- Multiple light types (arealight, spotlight, sun, etc.)
- More advanced materials (starting with refraction)
- Sorting of metal functions to reduce divergence of threads in shaders (not a a real performance bottleneck yet)
This library is released under the MIT license. See LICENSE for details.