s_glareLookPower
global · lighting
- Address
0x86f3d8· 4 bytes, up to0x86f3db- Type
const float- Meaning
- Holds 10.0, the power of the glare's look factor
- Confidence
- verified, proof one
- Finding
- lighting/celestial#glare-update
Finding: Glare update in lighting: sun, moons and stars
Each frame 0x6cf490 sets a glare's target to the product of its cloud and submersion
occlusion, 1 − the largest active skybox weight, its visibility track at the time of day and, when
that is nonzero, its draw occlusion. The envelope +0x30 moves toward the target by at most rise
or fall times the frame time. With c = camera forward · the unit direction to the glare, raised to
the look threshold, and f = (c − threshold)/(1 − threshold), the scale +0x24 is lerp(scale ends,
f) times the base scale, the alpha byte becomes bits(f32(old/255 · lerp(alpha ends, f) · envelope ·
255 + 512)) >> 14, and the look factor +0xa4 is c^10 · envelope.
The derivation is in the doc.