… | |
… | |
36 | point p; |
36 | point p; |
37 | vec3 d, u; |
37 | vec3 d, u; |
38 | GLfloat fov; |
38 | GLfloat fov; |
39 | GLfloat z_near, z_far, c_far; |
39 | GLfloat z_near, z_far, c_far; |
40 | int w, h; |
40 | int w, h; |
|
|
41 | GLfloat pixfact; // how many pixels on screen are drawn by a unit length line, *roughly* |
41 | |
42 | |
42 | GLfloat gamma; |
43 | GLfloat gamma; |
43 | |
44 | |
44 | // only to be used by friends: TODO |
45 | // only to be used by friends: TODO |
45 | |
46 | |
46 | GLfloat nz_far, nc_far; |
47 | GLfloat nz_far, nc_far; |
47 | GLfloat diagfact; // bounding box border to depth factor |
48 | GLfloat diagfact; // bounding box border to depth factor |
|
|
49 | GLfloat perspfact; // perspfact * (1/depth)=> pixels |
48 | |
50 | |
49 | matrix projection; |
51 | matrix projection; |
50 | |
52 | |
51 | struct { |
53 | struct { |
52 | plane l, r, t, b, n, f; |
54 | plane l, r, t, b, n, f; |