s_uiPixelShaders
global · ui
- Address
0xcf4cd0· 8 bytes, up to0xcf4cd7- Type
void *[2]- Meaning
- Holds the two pixel shaders of the interface, slot 0 empty and slot 1 the desaturate shader
- Confidence
- verified, proof one
- Finding
- ui/texture#desaturating
Finding: Desaturating in ui: texture colour and drawing
Texture:SetDesaturated(flag) binds a pixel shader to the texture and answers the number 1, or nil when the device
cannot run the shader. A missing argument is true. Turning it off clears the slot only when it holds that shader.
IsDesaturated() answers 1 only when the slot holds the usable shader, else nil, so a device without the shader cannot
tell "off" from "unsupported". A desaturated quad takes its colour from the shader and not from the fixed combine; the
weights are in the shader file Shaders\Pixel\Desaturate.bls, not in the executable (see the saturation weights).
The derivation is in the doc.