AddSplash
function · terrain · primitive
- Address
0x68bda0· 262 bytes, up to0x68bea5- Signature
void __fastcall (uint32_t arg1, uint32_t arg2, const float *point, float a, float b, float c, float d, float e, float f)- Meaning
- Gates a ripple emission by the waterRipples setting and the mode, makes the peak alpha and relays it
- Confidence
- verified, proof one
- Finding
- terrain/waterfx#ripple-emission
- Test
terrain::falloff_scale_difftest
Finding: Ripple emission in terrain: water effects
0x68bda0 gates and relays an emission. In the immediate mode (0xc89db8 is 0) it makes the peak
alpha t = 6x when x < 1/6, else 1.0, and passes t, the heading, the size and the lifetime and
growth to 0x68f9f0. 0x68f9f0 negates the heading and 0x68f5c0 writes the record: position,
heading, size, growth (final size less size, over lifetime), peak t, alpha 0, a rise rate t /
(lifetime × 0.4), a decay rate −t / (lifetime × 0.6), the death time (the clock plus the lifetime)
and the category. It copies in the transformed vertices of every liquid triangle that the box of
half-size the final size and half-height 1.0 around the position overlaps.
The derivation is in the doc.
Callers 1
- AddSplashThunk terrain
Callees 2
- InitFalloff terrain
- AddRipple terrain
Calls and jumps by a bare address, from tables/calls.tsv.