benilla-re systems structs docs

ConsoleSetMaxLod

function · terrain · orchestration

Address
0x673200 · 73 bytes, up to 0x673248
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

  1. 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; maxLOD stores 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

Calls and jumps by a bare address, from tables/calls.tsv.