benilla-re systems structs docs

FillShadowRamp

function · lighting · primitive

Address
0x6d81a0 · 294 bytes, up to 0x6d82c5
Meaning
Fills the first ramp texture white with a computed alpha
Confidence
inferred
Finding
lighting/shadows#shadow-textures
Test
lighting::sb_shadow_ramp_0x6d81a0_difftest

Finding: Shadow textures in lighting: shadows

The unit setup loads Textures\ShadowBlob.blp and builds two 64 × 8 procedural textures; the unit shutdown releases all three. The first is white with a computed alpha; the second is a grey ramp across the 64 columns: with f = 12·i/63, the darkness is f/2 below 2, 1 from 2 to 10 and (12 − f)/2 above, and a texel's alpha is 0 where it is white.

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.