Ray Tracing 012Dielectrics
Summary
- In material class, I added attenuation vector and scattered ray parameters to the scatter() function and a new refract() and schlick() functions.
- Updated scatter() function of lambertian and metal classes.
- Added new dielectric material class.
- Updated raytracer's color() function to support scattered rays and attenuation.
- Updated with a set of new spheres.
Loading...