Subversion Repositories gelsvn

Rev

Rev 541 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 541 Rev 554
Line 52... Line 52...
52
          return &hit_object->materials[hit_object->mat_idx[hit_face_id]];
52
          return &hit_object->materials[hit_object->mat_idx[hit_face_id]];
53
        }
53
        }
54
 
54
 
55
        void reset()
55
        void reset()
56
        {
56
        {
-
 
57
            has_hit=false;
-
 
58
            inside = false;
-
 
59
            did_hit_diffuse = false;
57
            dist = CGLA::BIG; 
60
            dist = CGLA::BIG;
58
            hit_object = 0;
61
            ior = 1.0f;
59
            u=0.0f;
62
            u=0.0f;
60
            v=0.0f;
63
            v=0.0f;
-
 
64
            trace_depth = 0;
61
            has_hit=false;      
65
            hit_object = 0;
62
        }
66
        }
63
 
67
 
64
        void compute_position()
68
        void compute_position()
65
        {
69
        {
66
            hit_pos = origin + dist*direction;      
70
            hit_pos = origin + dist*direction;