MCPcopy Create free account
hub / github.com/assaultcube/AC / distlod

Function distlod

source/src/worldrender.cpp:286–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void 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

Callers 1

render_worldFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected