benilla-re systems structs docs

s_rippleMode

global · terrain

Address
0xc89db8 · 4 bytes, up to 0xc89dbb
Type
uint32_t
Meaning
Holds the ripple emission mode: 0 immediate, 1 queued
Confidence
verified, proof one
Finding
terrain/waterfx#ripple-emission

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.