| 284 | } |
| 285 | |
| 286 | void distlod(int &low, int &high, int angle, float widef) |
| 287 | { |
| 288 | float f = 90.0f/lod/widef; |
| 289 | low = (int)((90-angle)/f); |
| 290 | high = (int)(angle/f); |
| 291 | if(low<min_lod) low = min_lod; |
| 292 | if(high<min_lod) high = min_lod; |
| 293 | } |
| 294 | |
| 295 | // does some out of date view frustrum optimisation that doesn't contribute much anymore |
| 296 |