benilla-re systems structs docs

CWorld::SetLodDistance

function · terrain · orchestration

Address
0x672680 · 55 bytes, up to 0x6726b6
Signature
uint32_t __stdcall (float value)
Meaning
Stores lodDist when it lies in 50.0 to 250.0 or is a NaN
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 1

Callees 0

None by a direct call or jump.

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