Rain::Update
function · lighting · primitive
- Address
0x6756a0· 1055 bytes, up to0x675abe- Signature
void __thiscall (Rain *this)- Meaning
- Retires and discards rain packets, then opens, fills and closes the frame's packet
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#particle-packets
- Test
lighting::wl_update_dt_accum,lighting::wl_update_interval_div
Finding: Particle packets in lighting: precipitation
A rain packet holds 6144 drops of 0x24 bytes: position, velocity, and birth and death in
seconds of fill time. After them come the count +0x3600c, the start and last ticks +0x36010 and
+0x36014, the fill time +0x36018 and the vertex buffer +0x3602c. A packet opens when
the first drop of a new batch is due: its start tick is now plus the time 6144 drops take at the
current rate. Every drop raises the last tick to the start plus its death plus the time its tail
takes to fall 2 yards. The packet closes, baking its vertex buffer, when it is full, its fill time
reaches P·(1/6144) for the rate's base P (rain-rates), or now passes its start.
The derivation is in the doc.
Callers 1
- Rain::Render lighting
Callees 13
- DebugPrintStub unassigned
- SMemAlloc storm
- SecondsToWeatherTicks lighting
- WeatherTicksToSeconds lighting
- BakeRainPacket lighting
- BakePatterPacket lighting
- Rain::EmitDrops lighting
- 0x67d6a0 lighting
- 0x67db70 lighting
- 0x67dc50 lighting
- 0x67df40 lighting
- 0x67e1a0 lighting
- 0x67e230 lighting
Calls and jumps by a bare address, from tables/calls.tsv.