ShadeRec - object? Point3D local_hit_point; // world...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#ifndef __SHADE_REC__ #define __SHADE_REC__ # // this file contains the declaration of the class ShadeRec / class World; // only need a forward class declaration as the World data member is a reference i #include "Point3D.h" #include "Normal.h" #include "RGBColor.h" # class ShadeRec { public: p bool hit_an_object; // did the ray hit an
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: object? Point3D local_hit_point; // world coordinates of hit point Normal normal; // normal at hit point RGBColor color; // used in Chapter 3 only World& w; // world reference for shading r ShadeRec(World& wr); // constructor / ShadeRec(const ShadeRec& sr); // copy constructor }; } #endif...
View Full Document

Ask a homework question - tutors are online