benilla-re systems structs docs

s_textFogExpOption

global · gx

Address
0x85c488 · 22 bytes, up to 0x85c49d
Type
char[22]
Meaning
Holds the program line "OPTION ARB_fog_exp;" with its newlines
Confidence
verified, proof one
Finding
gx/renderstate#opengl-fragment-program-build

Finding: OpenGL fragment program build in gx: render state

0x59e530(program) builds an OpenGL fragment program from a program object's text (+0x5c, length +0x58) when the device's program level [dev+0x2d4] is 10: the text must begin with !!ARBfp1.0; the function splices \nOPTION ARB_fog_linear;\n, ARB_fog_exp or ARB_fog_exp2 after it when the fog state (id 15) is on, by the fog mode (id 9), then generates a program name, binds target 0x8804 and passes the text with glProgramStringARB (format 0x8875). The program counts as loaded (+0x2c = 1) when GL_PROGRAM_ERROR_POSITION (0x864b) is -1 and GL_PROGRAM_UNDER_NATIVE_LIMITS (0x88b6) is non-zero. Levels 5 to 8 set the name field and the loaded flag to 1 without a program.

The derivation is in the doc.