s_lightningNormal
global · gx
- Address
0xcf5840· 12 bytes, up to0xcf584b- Type
float[3]- Meaning
- Holds the shared normal (0, 0, 1) of every ribbon vertex
- Confidence
- verified, proof one
- Finding
- gx/lightning#bolt-draw-state
Finding: Bolt draw state in gx: lightning
0x7afcb0 pushes the render states (0x589f40) and sets: id 1 to the alpha byte shifted to the top, id 2 to the colour, cull off (id 0x14), depth write off (0x12), fog off (0xf), blend mode 3 (source alpha, one) and the bolt's texture, loaded at once with 0x44acf0(texture, 1), on stage 0 (id 0x17). It translates stage 0's texture by (-clock / period, 0, 0) (period 1.0 when 0), builds the vertices with 0x58a2a0 (12-byte positions, a shared normal (0, 0, 1), texture coordinates at stride 8: format 3), draws the indices as a triangle strip (0x58a2e0, topology 4), pops the states and restores the view.
The derivation is in the doc.