ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libgender/oct.C
(Generate patch)

Comparing libgender/oct.C (file contents):
Revision 1.75 by root, Tue Nov 9 22:24:14 2004 UTC vs.
Revision 1.76 by root, Tue Nov 9 22:33:18 2004 UTC

141 141
142 if (fd < -(ctx.c_far - ctx.z_far) -rad * 3.F) 142 if (fd < -(ctx.c_far - ctx.z_far) -rad * 3.F)
143 return false; 143 return false;
144#endif 144#endif
145 } 145 }
146
147#if 0
148 if (vs.state == OCCLUDED && size ())
149 {
150 if (size ())
151 ctx.vislist.push_back (this);
152 return false;
153 }
154#endif
155 146
156 // very important, optimize? 147 // very important, optimize?
157 GLfloat z = ctx.z_near + distance (ctx.frustum.n, centerf) + rad; 148 GLfloat z = ctx.z_near + distance (ctx.frustum.n, centerf) + rad;
158 if (ctx.perspfact * extent / z < 1.) // very crude "too small to see" check 149 if (ctx.perspfact * extent / z < 1.) // very crude "too small to see" check
159 return false; 150 return false;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines