mpv-conf/shaders/colorlevel_shrink_luma.glsl

14 lines
195 B
Text
Raw Permalink Normal View History

2021-12-03 20:50:08 +08:00
//!DESC color levels - (LUMA)
//!HOOK LUMA
//!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;
}