BakePatterPacket
function · lighting · primitive
- Address
0x6753c0· 213 bytes, up to0x675494- Signature
void __thiscall (void *this, void *packet)- Meaning
- Writes a closed patter packet's three vertices per patter into its vertex buffer
- Confidence
- verified, proof one
- Finding
- lighting/precipitation#particle-packets
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::Update lighting
Callees 3
- GxBufLock gx
- GxBufUnlock gx
- GxDeviceCaps gx
Calls and jumps by a bare address, from tables/calls.tsv.