online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/chat/grayscale.shader')
| -rw-r--r-- | ui/chat/grayscale.shader | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/ui/chat/grayscale.shader b/ui/chat/grayscale.shader deleted file mode 100644 index 61f3970..0000000 --- a/ui/chat/grayscale.shader +++ /dev/null @@ -1,8 +0,0 @@ -shader_type canvas_item; -uniform float saturation: hint_range(0.0, 1.0) = 0.0; - -void fragment() { - 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 |