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.

RayColor functionYou should have a RayColor functionHere’s what mine looks like:void CRaytraceRenderer::RayColor(const CRay &p_ray, (input)CRayColor &p_color,(output)int p_recurse,(to control recursion)const CUseIntersection::Object *p_ignore) (ignore)This will call itself• We call this a recursive ray tracer• What is your stopping condition?CSE 472 Spring 201349TransmissionI’ll let you figure this one out…CSE 472 Spring 201350

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

Saved successfully!

Ooh no, something went wrong!