Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
to the ranged [0.0, 1.0]. The linear blend is defined as blendedValue = (1-t)*startValue + t*endValue, with t in [0.0, 1.0]. The rest of the main file //1 setting the file and size of the picture 800x600 let filename = getDocumentsDirectory().appendingPathComponent(“output3.ppm”) let row = 800 let