benilla-re systems structs docs

AddRipple

function · terrain · orchestration

Address
0x68f9f0 · 228 bytes, up to 0x68fad3
Signature
uint8_t __fastcall (uint32_t arg1, uint32_t arg2, const float *point, float a, float b, float c, float d, uint32_t kind)
Meaning
Takes the next ripple record of the mover's or the other range and fills it through EmitRipple
Confidence
verified, proof one
Finding
terrain/waterfx#ripple-emission
Test
terrain::ripple_negate_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

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.