Learning Rust – Part 10: Dielectrics
In the previous post, we implemented a trait called Material which we used to render metallic spheres. This time, we’ll create a new struct called Dielectrics which implements the Material trait and renders glass spheres. Fairly Straightforward…Sort Of Nothing too tricky with this concept, we just had to implement a refract() function as opposed to […]