ConsoleSetMaxLod
function · terrain · orchestration
- Address
0x673200· 73 bytes, up to0x673248- Signature
uint32_t __fastcall (const char *name, const char *args)- Meaning
- Reads maxLOD: 2 or 3 stored, 0 and 1 give 2, others 3
- Confidence
- verified, proof one
- Finding
- terrain/lod#chunk-levels
Finding: Chunk levels in terrain: lod
A chunk takes the near level 3 (0x867964), or the far level 2 (0x867968) when the lod option
(world flag 4) is on and its view depth is above lodDist (0x867960); levels 0 and 1 are never
stored. The depth is that of the chunk's bounding sphere along the view axis, f·(centre − eye) − radius, taken
from the plane 0xc7bcb0 to 0xc7bcbc and compared strictly (equal and NaN stay near). lod (default
- sets or clears the flag;
lodDist(default string 100.0) accepts 50.0 to 250.0 inclusive and a NaN, else it says the range and uses 77.0;maxLODstores 2 or 3, 2 for 0 and 1, and 3 for a value above 3 or negative.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- _sscanf crt
Calls and jumps by a bare address, from tables/calls.tsv.