ShadeRec(ShadeRec sr) { hit_an_object = (sr.hit_an_object); material_ptr = (sr.material_ptr); hit_point = (sr.hit_point); local_hit_point = (sr.local_hit_point); normal = (sr.normal); ray = (sr.ray); depth = (sr.depth); color = (sr.color); t = (sr.t); u = (sr.u); v = (sr.v); w = (sr.w); }
World w; // world reference ShadeRec(World wr) // constructor { hit_an_object = false; material_ptr = null; hit_point = new Point3D(); local_hit_point = new Point3D(); normal = new Normal3D(); ray = new Ray(); depth = 0; color = new ColorRGB(0,0,0); t = (0.0); u = (0.0f); v = (0.0f); w = (wr); }