benilla-re systems structs docs

RsqrtEstimate

function · cmath · primitive

Address
0x456330 · 25 bytes, up to 0x456348
Meaning
Returns the float whose bits are ecx less half the argument's bits, a reciprocal square root estimate
Confidence
verified, proof one
Finding
lighting/clouds#cloud-colours
Test
cmath::fast_inv_sqrt_seed_difftest

Finding: Cloud colours in lighting: clouds

Each texel with cover a > 0 gets alpha a and colour base + glow, each channel clamped to 1 and packed as bits(f32(c·255 + 512)) >> 14. base = band 10·p + band 11 with p = (((255 − a) >> 1) + 64)/255. glow = band 9·k when the angle term k is positive: k = cos θ · (1 − 0.75·w) · E(time), θ between (s − texel, 192·w + 64) and (slope, 1), s the light's texel position, w the storm weight and E the track at 0xce9ab8. The light is the sun disc from 04:50 to 22:10, else the white moon. A texel with no cover copies the previous texel's colour with alpha 0.

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.