EmitRipple
function · terrain · host
- Address
0x68f5c0· 739 bytes, up to0x68f8a2- Signature
uint8_t __thiscall (void *this, float a, float b, float c, float d, float e, uint32_t arg7, uint32_t arg8)- Meaning
- Fills a ripple record and copies in the triangles of the liquid slots the ripple's box overlaps
- Confidence
- verified, proof one
- Finding
- terrain/waterfx#ripple-emission
- Test
terrain::ripple_params_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
- AddRipple terrain
Callees 5
- AddVector3InPlace ui
- 0x5966a0 gx
- 0x596930 gx
- TestWorldBoxThunk terrain
- TransformPoint cmath
Calls and jumps by a bare address, from tables/calls.tsv.