http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/programming/2022/03/23/raytracing.html
For now, still, this returns a color relative to the \(x\) and \(y\)
coordinate in our scene: // Add a new include at the top of our file: #include <optional> // ---✂--- std :: optional < olc :: Pixel > SampleRay ( const ray r ) const { // Called to get the color produced by a specific ray. // This will be the color we (eventually) return. olc :: Pixel final_color ; // For now we're returning a color based on the screen coordinates. return olc :: Pixel ( std :: abs ( x * 255 ), std :: abs...