13.07.2015 Views

Raytracing

Raytracing

Raytracing

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Intersect Functionbool Intersect(const CRay &p_ray, // The ray we are testingdouble p_maxt, // The maximum allowable tconst Object *p_ignore, // A polygon to ignoreconst Object *&p_object, // Object we hit (return)double &p_t,// Distance to intersection (return)CGrPoint &p_intersect); // Intersection point (return)CSE 472 Spring 201315Intersect Functionbool Intersect(const CRay &p_ray, // The ray we are testingdouble p_maxt, // The maximum allowable tconst Object *p_ignore, // A polygon to ignoreconst Object *&p_object, // Object we hit (return)double &p_t,// Distance to intersection (return)CGrPoint &p_intersect); // Intersection point (return)What is the use for p_maxt?CSE 472 Spring 201316

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!