Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
column = 600 var out = “” out.append(“P3\n\(row) \(column)\n255\n”) //2 setting the values according to the image above let lowerLeftCorner = float3(-4.0,-1.0, 1.0) let horizontal = float3(8.0,0.0,0.0) let vertical = float3(0.0,4.0,0.0) let origin = float3(0.0,0.0,0.0) //3 we will iterate in a 2