Subversion Repositories gelsvn

Rev

Rev 346 | Rev 350 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 346 Rev 349
Line 42... Line 42...
42
	return accel_->intersect(s);
42
    return accel_->intersect(s);
43
}
43
}
44
 
44
 
45
bool scene::intersect(const ray& r, hit_info& hi)
45
bool scene::intersect(const ray& r, hit_info& hi)
46
{
46
{
-
 
47
    printf("%.2f, %.2f, %.2f\n", r.direction[0],
-
 
48
           r.direction[1], r.direction[2]);
-
 
49
    printf("%.2f, %.2f, %.2f\n", r.origin[0], r.origin[1], r.origin[2]);
-
 
50
 
-
 
51
    printf("%.2f, %i\n", r.distance, r.depth);
-
 
52
 
-
 
53
 
47
	Ray s;
54
    Ray s;
48
	s.direction = r.direction;
55
    s.direction = r.direction;
49
	s.origin = r.origin;
56
    s.origin = r.origin;
50
	s.trace_depth = r.depth;
57
    s.trace_depth = r.depth;
51
	s.dist = r.distance;
58
    s.dist = r.distance;