Files
OldThink/Resources/Textures/Shaders/White/saturationscale.swsl
HitPanda 2cd1656188 [Fix] Mood system fix (#439)
* mood back

* fix ready
2024-01-24 08:21:05 +03:00

13 lines
309 B
Plaintext

uniform highp float saturation; // Between 0 and 2;
uniform sampler2D SCREEN_TEXTURE;
void fragment() {
highp vec4 color = texture(SCREEN_TEXTURE, UV);
highp float brightness = (color.r + color.g + color.b) / 3.0;
color.rgb = mix(vec3(brightness), color.rgb, saturation);
COLOR = color;
}