LightningBolt::Render
function · gx · primitive
- Address
0x7afcb0· 2561 bytes, up to0x7b06b0- 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
- _atexit crt
- GetTextureDeviceObject gx
- SetVector3 spline
- Vector3LengthSquared spline
- GxRsSetWord gx
- GxRsSet gx
- GxRsSetObject gx
- GxRsPush gx
- GxRsPop gx
- GxBuildVerticesCounted gx
- GxDrawCounted gx
- 0x58a340 gx
- SetDeviceView gx
- GetDeviceView gx
- 0x58b200 gx
- 0x58b220 gx
- GxXformSetIdentity gx
- 0x58b250 gx
- MultiplyMatrix4 cmath
- TransformPoint cmath
Calls and jumps by a bare address, from tables/calls.tsv.