online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/chat/grayscale.shader')
-rw-r--r--ui/chat/grayscale.shader4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/chat/grayscale.shader b/ui/chat/grayscale.shader
index 3188c10..61f3970 100644
--- a/ui/chat/grayscale.shader
+++ b/ui/chat/grayscale.shader
@@ -1,10 +1,8 @@
shader_type canvas_item;
uniform float saturation: hint_range(0.0, 1.0) = 0.0;
-uniform float scale: hint_range(0.0, 1.0) = 1.0;
-const float pivot = 0.5;
void fragment() {
- vec4 tex_color = texture(TEXTURE, (UV - pivot) * (2.0 - scale) + pivot);
+ vec4 tex_color = texture(TEXTURE, (UV));
COLOR.rgb = mix(vec3(dot(tex_color.rgb, vec3(0.299, 0.587, 0.114))), tex_color.rgb, saturation); // magic numbers
COLOR.a = tex_color.a;
} \ No newline at end of file