s_cvarNearclip
global · uicamera
- Address
0xbe1078· 4 bytes, up to0xbe107b- Type
void *- Meaning
- Holds the CVar record of nearclip, whose float at +0x24 the camera copies each frame
- Confidence
- verified, proof one
- Finding
- terrain/world#distance-settings
Finding: Distance settings in terrain: world
Four registered settings bound the world's distances. farclip, nearclip and horizonfarclip refuse a value
outside the range with a message; textureLodDist writes its message, runs at 80.0 instead and keeps the set, its
record holding the typed value.
farclip (default 350) takes 177 to 777 and sets the world far clip. horizonfarclip (2112) takes the far
clip plus 528 up to 2112 and sets the far plane of the low-detail projection. nearclip (0.1) takes 0.01 to
0.33 and textureLodDist (777.0) takes 80 to 777; their world copies are never read. The camera takes its
near and far planes from the nearclip and farclip records, not from the world copies. lodDist is in lod.
The derivation is in the doc.