benilla-re systems structs docs

SetSpellScreenTint

function · lighting · primitive

Address
0x6d45c0 · 45 bytes, up to 0x6d45ec
Signature
void __stdcall (uint32_t colour, float level)
Meaning
Stores the screen tint colour and the byte of 255 times its level
Confidence
verified, proof one
Finding
lighting/daynight#screen-tint
Test
lighting::dn_override_sky_phase_difftest

Finding: Screen tint in lighting: day-night

A spell visual sets a tint colour and a level in [0, 1]; the level becomes the byte a = bits(f32(level·255 + 512)) >> 14. When a ≠ 0 the table build moves the fog colour, ambient, diffuse, sun disc and white moon colours toward the tint by the 8-bit blend, after the underwater tint and the body broadcast.

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.