dilevin / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
1 stars 5 forks source link

min_t value #66

Closed yangh122 closed 6 days ago

yangh122 commented 1 week ago

When we call the first hit function, what should the min_t value be, 1.0 or 0?

vpineda1996 commented 6 days ago

You should be using the value passed in from raycolor.cpp. That function is called by main.cpp which is 1

milomg commented 5 days ago

If we use the value 1.0 for all calls to raycolor, won't our reflections be broken & not match the rendered examples?