Use INFINITY for nearest_t

This commit is contained in:
Eryn Wells 2013-09-08 21:08:52 -07:00
parent a644539fd3
commit ca2a5c1b3b

View file

@ -145,7 +145,7 @@ scene_trace_ray(Scene *scene, const Ray ray, const int depth)
// Find intersections of this ray with objects in the scene.
Object *intersected_obj = NULL;
float *t = NULL;
float nearest_t = 1e8;
float nearest_t = INFINITY;
int nints;
ObjectList *ptr = scene->objects;
while (ptr != NULL) {