… | |
… | |
44 | |
44 | |
45 | GLfloat gamma; |
45 | GLfloat gamma; |
46 | |
46 | |
47 | // only to be used by friends: TODO |
47 | // only to be used by friends: TODO |
48 | |
48 | |
49 | GLfloat nz_far, nc_far; |
49 | GLfloat nz_far, nz_near, nc_far; |
50 | GLfloat diagfact; // bounding box border to depth factor |
50 | GLfloat diagfact; // bounding box border to depth factor |
51 | GLfloat perspfact; // perspfact * (1/depth)=> pixels |
51 | GLfloat perspfact; // perspfact * (1/depth)=> pixels |
52 | |
52 | |
53 | gl::matrix projection; |
53 | gl::matrix projection; |
54 | |
54 | |
55 | struct { |
55 | struct { |
56 | plane l, r, t, b, n, f; |
56 | plane l, r, t, b, n, f; |
|
|
57 | cone c; |
|
|
58 | sphere s; |
57 | } frustum; |
59 | } frustum; |
58 | |
60 | |
59 | // the passes |
61 | // the passes |
60 | enum pass { |
62 | enum pass { |
61 | DEPTH, // mandatory, render depth only |
63 | DEPTH, // mandatory, render depth only |