Files
mpv-config/shaders/other/colorlevel_shrink.glsl
T
2026-03-27 07:06:16 +01:00

14 lines
194 B
GLSL

//!DESC color levels -
//!HOOK MAINPRESUB
//!BIND HOOKED
const float min = 16.0 / 255.0;
const float max = (235.0 - 16.0) / 255.0;
vec4 hook()
{
return (HOOKED_texOff(0) * max) + min;
}