Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
worth the //investigation the data is small half4 bottom(0.34,0.9,1.0,1); half4 top(0.29,0.58,0.2,1); float3 horizontal(8.0,0.0,0.0); float3 vertical(0.0,4.0,0.0); float3 lowerLeftCorner(-4.0,-1.0, 1.0); //4 using the values to caluculate the direction vector of the ray float u =