Subversion Repositories gelsvn

Rev

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

Rev 595 Rev 609
Line 26... Line 26...
26
    struct Ray 
26
    struct Ray 
27
    {
27
    {
28
        // Constructor
28
        // Constructor
29
        Ray() 
29
        Ray() 
30
          : origin(0.0f), direction(0.0f), hit_pos(0.0f), hit_normal(0.0f), 
30
          : origin(0.0f), direction(0.0f), hit_pos(0.0f), hit_normal(0.0f), 
31
            has_hit(false), dist(CGLA::BIG), ior(1.0f), u(0.0f), v(0.0f), 
31
            has_hit(false), inside(false), did_hit_diffuse(false), dist(CGLA::BIG),
32
            hit_object(0), trace_depth(0), inside(false), did_hit_diffuse(false)
32
            ior(1.0f), u(0.0f), v(0.0f), trace_depth(0), hit_object(0)
33
        { }
33
        { }
34
 
34
 
35
        Ray(const CGLA::Vec3f& _origin, const CGLA::Vec3f& _direction) 
35
        Ray(const CGLA::Vec3f& _origin, const CGLA::Vec3f& _direction) 
36
          : origin(_origin), direction(_direction), hit_pos(0.0f), hit_normal(0.0f), 
36
          : origin(_origin), direction(_direction), hit_pos(0.0f), hit_normal(0.0f), 
37
            has_hit(false), dist(CGLA::BIG), ior(1.0f), u(0.0f), v(0.0f), 
37
            has_hit(false), inside(false), did_hit_diffuse(false), dist(CGLA::BIG),
38
            hit_object(0), trace_depth(0), inside(false), did_hit_diffuse(false)
38
            ior(1.0f), u(0.0f), v(0.0f), trace_depth(0), hit_object(0)
39
        { }
39
        { }
40
 
40
 
41
        CGLA::Vec3f origin;
41
        CGLA::Vec3f origin;
42
        CGLA::Vec3f direction;
42
        CGLA::Vec3f direction;
43
        CGLA::Vec3f hit_pos;
43
        CGLA::Vec3f hit_pos;