benilla-re systems structs docs

DrawWorldScene

function · terrain · orchestration

Address
0x681070 · 846 bytes, up to 0x6813bd
Signature
void __cdecl (void)
Meaning
Draws the world: counters, horizon, one scene walk per window, the band drain and the passes in order
Confidence
verified, proof one
Finding
terrain/scene#scene-driver
Test
terrain::render_near_bias_difftest, terrain::render_fog_dist_difftest, terrain::render_leg_fog_offset_difftest, terrain::render_pos_accumulate_difftest

Finding: Scene driver in terrain: scene

0x681070 draws the world. It zeroes the counters, sets the horizon far depth to the far clip less 33.333332 and the fov term fog/cos(fov/2) − fog. Outdoors it walks the scene once with the rectangle (0, 0, 1, 1). Inside a map object it copies the object's deferred portal windows to its region array and walks once per window, with the horizon feed the window's farthest plane distance plus 33.333332; with no window it walks nothing. It then drains the band lists and draws the passes in the order of Frame order.

The derivation is in the doc.

Callers 1

Callees 33

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