benilla-re systems structs docs

FillSkyGradient

function · terrain · primitive

Address
0x68c250 · 559 bytes, up to 0x68c47e
Signature
void __fastcall (uint32_t type, uint32_t *out, uint32_t arg3, uint32_t arg4)
Meaning
Fills the sky gradient texture with a mirrored profile of the five sky band colours and an alpha ramp
Confidence
inferred
Finding
terrain/liquidpass#sky-gradient-texture

Finding: Sky gradient texture in terrain: liquid passes

0x68c4c0 also makes the 64-row sky gradient texture 0xc7fbb8, which 0x68c480 fills through 0x68c250 for level 1. The profile is 32 rows mirrored about the middle: row r (0 at the middle) is the lerp between the five band colours of the light state at +0xb4 over the intervals 0, 0.17, 0.20, 0.23, 0.24, 0.25 of 4 × 32 rows, each channel × 182/256, with the alpha byte the top byte of the alpha ramp at index 2r.

The derivation is in the doc.

Callers 1

Callees 3

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