Rays, Camera and a Background
The Ray Class
All ray tracing programs have a class called "ray" and a way to calculate the color seen along that ray. A ray is like a line in 3D space with a starting point (the "origin") and a direction. You can move along the ray by plugging in a ...
raytracingmitit.hashnode.dev6 min read