Ray Tracing, Apple Metal, Swift Programming, Gpu Rendering, Wwdc 2020.
background from the ground green to the sky blue. This time we will stick to a rectangle 800x600 image, set the camera at (0,0,0) and use the left-hand notation of Metal as the image above. To color the intersection of the rays we will use Hemispheric lighting, where half of the screen is colored