LerpColor
function · terrain · primitive
- Address
0x690ae0· 165 bytes, up to0x690b84- Signature
void __thiscall (uint32_t *this, uint32_t a, const uint32_t *src)- Meaning
- Blends two colours channel by channel by a byte, keeping the first's alpha; 255 takes the second's
- Confidence
- verified, proof one
- Finding
- terrain/liquidpass#sky-gradient-texture
- Test
terrain::color_lerp_i_difftest
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 5
- FillSkyGradient terrain
- BuildSceneFog lighting
- ColourSkyDome lighting
- BuildLightTable lighting
- BlendLightRecord lighting
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.