Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
dimention and light the image for j in 0..<column { for i in 0..<row { //4 moving the cursor over the 2D image let u = Float(i) / Float(row) let v = Float(j) / Float(column) //5 shooting the ray in the direction of the cursor let ray = Ray(direction: lowerLeftCorner + u*horizontal + v*vertical) let