CSimpleTexture::SetPixelShader
function · ui · orchestration
- Address
0x770650· 29 bytes, up to0x77066c- Meaning
- Stores the pixel-shader slot and marks the texture dirty
- 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.
Callers 1
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.