benilla-re systems structs docs

s_glColourScale

global · gx

Address
0x809ffc · 4 bytes, up to 0x809fff
Type
float
Meaning
Holds 1/255, the scale of a colour byte to a unit float in the OpenGL paths
Confidence
verified, proof one
Finding
gx/draw#opengl-draw-preparation

Finding: OpenGL draw preparation in gx: drawing

Before each draw OpenGL runs 0x59c6d0: it merges the dirty masks, flushes render state, then applies lights (0x59c820), the fill mode (0x59c9f0, glPolygonMode fill 0x1b02 or line 0x1b01 from capability bit 9), texture matrices, the viewport (0x59c730) and the attribute arrays (0x59c100). 0x59c100 sets the current colour with glColor4fv from id 1 when the format has no colour, then per component enables or disables the client array and passes the pointer (glVertexPointer, glNormalPointer, glColorPointer, glTexCoordPointer) at the buffer offset.

The derivation is in the doc.