… | |
… | |
147 | |
147 | |
148 | GLfloat fd = ctx.frustum.f.distance (center); |
148 | GLfloat fd = ctx.frustum.f.distance (center); |
149 | |
149 | |
150 | if (fd < -dia) |
150 | if (fd < -dia) |
151 | { |
151 | { |
152 | // but _do_ check |
152 | if (fd > -dia * 2) |
|
|
153 | return; |
|
|
154 | |
|
|
155 | // cull, but do check for potential visibility |
|
|
156 | if (size ()) |
153 | ctx.farlist.push_back (this); |
157 | ctx.farlist.push_back (this); |
154 | return; |
|
|
155 | } |
158 | } |
156 | } |
159 | } |
157 | |
160 | |
158 | if (size ()) |
161 | if (size ()) |
159 | ctx.vislist.push_back (this); |
162 | ctx.vislist.push_back (this); |