[Fix] Mood system fix (#439)

* mood back

* fix ready
This commit is contained in:
HitPanda
2023-09-25 01:44:44 +03:00
committed by Aviu00
parent c58225fc98
commit 2cd1656188
47 changed files with 1221 additions and 7 deletions

View File

@@ -0,0 +1,12 @@
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;
}