The vector 3 class
Most graphics programs have classes for storing vectors and colors, typically 4D with a homogeneous coordinate for geometry and an alpha channel for transparency. However, for simplicity, we will use a single vec3 class for all purposes, including co...
raytracingmitit.hashnode.dev4 min read