UpdateRipples
function · terrain · host
- Address
0x68fae0· 2194 bytes, up to0x690371- Signature
void __cdecl (void)- Meaning
- Ages the ripple records, returns the dead to the pool and draws the live ones additively
- Confidence
- verified, proof one
- Finding
- terrain/waterfx#ripple-update
- Test
terrain::decal_pos_integrate_difftest,terrain::decal_age_fade_difftest,terrain::decal_age_fade_gate_difftest,terrain::decal_age_step_difftest,terrain::decal_jitter_difftest,terrain::decal_corner_ray_negate_difftest,terrain::decal_pos_plus_difftest,terrain::decal_pos_minus_difftest,terrain::decal_color_pack_difftest
Finding: Ripple update in terrain: water effects
0x68fae0 ages and draws the ripples each frame. A record whose death time has come, or whose
alpha has reached 0 or less, goes back to the pool. Otherwise its size grows by dt × growth and
its alpha rises by dt × rise to the peak; once the rise ends, alpha moves by step × decay, where step is
dt, or on the frame the peak is passed dt − (sum − peak)/rise. Live records are drawn per category
as triangle lists over their polygons.
The derivation is in the doc.
Callers 1
- DrawLiquidPhase terrain
Callees 23
- GetTextureDeviceObject gx
- SetVector3 spline
- GxRsSetFloat gx
- GxRsSet gx
- GxRsSetObject gx
- GxRsPush gx
- GxRsPop gx
- GxBufLock gx
- GxBufUnlock gx
- GxBufCreate gx
- GxDeviceCaps gx
- GxVertexBufBind gx
- PassBufferToDevice gx
- GxPrimRenderOne gx
- 0x58b210 gx
- 0x58b220 gx
- FreeArrayA terrain
- InitListHead terrain
- SetArrayCountB terrain
- CopyRippleSlot terrain
- BuildDecalTransforms lighting
- TransformPoint cmath
- RotateMatrix cmath
Calls and jumps by a bare address, from tables/calls.tsv.