… | |
… | |
31 | struct view { |
31 | struct view { |
32 | sector orig; |
32 | sector orig; |
33 | point p; |
33 | point p; |
34 | vec3 d, u; |
34 | vec3 d, u; |
35 | GLfloat fov; |
35 | GLfloat fov; |
36 | GLfloat near, far; |
36 | GLfloat z_near, z_far, c_far; |
37 | int w, h; |
37 | int w, h; |
38 | |
38 | |
39 | GLfloat gamma; |
39 | GLfloat gamma; |
40 | |
40 | |
41 | // only to be used by friends: TODO |
41 | // only to be used by friends: TODO |
42 | |
42 | |
43 | GLfloat nextfar; |
43 | GLfloat nz_far, nc_far; |
44 | GLfloat diagfact; // bounding box border to depth factor |
44 | GLfloat diagfact; // bounding box border to depth factor |
45 | |
45 | |
46 | matrix projection; |
46 | matrix projection; |
47 | |
47 | |
48 | struct { |
48 | struct { |