Adding a Sphere
One commonly employed object in ray tracing is the sphere due to its straightforward ray intersection calculations.
Ray-Sphere Intersection
For a sphere centered at the origin with a radius of R, the equation representing the sphere is x^2 + y^2 + z^...
raytracingmitit.hashnode.dev4 min read