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

Comparing libgender/oct.C (file contents):
Revision 1.41 by root, Sat Oct 9 16:51:39 2004 UTC vs.
Revision 1.42 by root, Sat Oct 9 16:52:06 2004 UTC

178 gl::draw_box (ctx, s, s + extent); 178 gl::draw_box (ctx, s, s + extent);
179} 179}
180 180
181void octant::event (occ_query &ev) 181void octant::event (occ_query &ev)
182{ 182{
183 if (ev.r <= 5) 183 ev.v.vismap[this].visibility = ev.r < 4
184 return; 184 ? visibility_state::OCCLUDED
185 185 : visibility_state::FULL;
186 ev.v.vismap[this].visibility = visibility_state::FULL;
187 ev.v.far = ev.v.near + ev.v.frustum.n.distance (orig); 186 ev.v.far = ev.v.near + ev.v.frustum.n.distance (orig);
188 printf ("OCT(%x,%x,%x+%x) samples %d\n", orig.x, orig.y, orig.z, extent, ev.r); 187 printf ("OCT(%x,%x,%x+%x) samples %d\n", orig.x, orig.y, orig.z, extent, ev.r);
189} 188}
190 189

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines