Texture::IsDesaturated
function · ui · primitive
- Address
0x79c2c0· 193 bytes, up to0x79c380- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Texture method IsDesaturated
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 0
None by a direct call or jump.
Callees 8
- lua_settop lua
- lua_type lua
- lua_touserdata lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_rawgeti lua
- luaL_error lua
- GetUiPixelShader ui
Calls and jumps by a bare address, from tables/calls.tsv.