benilla-re systems structs docs

LightningBolt::Render

function · gx · primitive

Address
0x7afcb0 · 2561 bytes, up to 0x7b06b0
Signature
void __thiscall (LightningBolt *this, uint32_t handle, const float *eye)
Meaning
Builds a bolt's camera-facing ribbon and draws it additively with its scrolling texture
Confidence
verified, proof one
Finding
gx/lightning#bolt-render
Test
gx::lightningrender_strip_difftest

Finding: Bolt render in gx: lightning

0x7afcb0(handle, eye) draws an active bolt. It calls the callback, if set, as callback(argument, handle, &start, &end) and sets the rebuild bit. It saves the device view matrix, sets the view to the identity and transforms every centre-line point by a translation by -eye times the saved view. For each segment it forms the view-space perpendicular (-dy, dx, 0), normalises it only when its length is above 0.001, and scales it by the width w. A shared point's vertex pair ends at point ± (w1 + w2) / 2; the first and last pairs are set to the end points.

The derivation is in the doc.

Callers 1

Callees 20

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