http://sidneys77crlfslcr7zmj3msmxchgnxhrxlp3p3kbaswo7twchjnicid.onion/programming/2022/03/23/raytracing.html
Sphere ( vf3d origin , olc :: Pixel fill , float radius ) : Shape ( origin , fill ), radius ( radius ) {} }; Next, we’ll want to update our OnUserCreate function to pass in the newly required properties of a Sphere . Let’s
create our initial Sphere at the position x=0, y=0, z=200 , where \(x\) is lateral position, \(y\) is vertical
position, and \(z\) is depth (or distance from the camera).