Adding a Sphere
May 29, 2023 · 4 min read · 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^...
Join discussion