From 43e09c80ebf4b97c5d8fa4f80c60bc4a6e90e4fa Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Thu, 26 Jul 2018 13:47:30 -0700 Subject: [PATCH] fix the float fixes #16 --- data/shaders/source/distant_faded_icon_ps.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/shaders/source/distant_faded_icon_ps.txt b/data/shaders/source/distant_faded_icon_ps.txt index a5d48b7..b73e773 100644 --- a/data/shaders/source/distant_faded_icon_ps.txt +++ b/data/shaders/source/distant_faded_icon_ps.txt @@ -4,5 +4,5 @@ void main() { float rad = length(uv - vec2(0.5)); if(rad > 0.33) discard; - gl_FragColor = vec4(gl_Color.rgb, (1.0 - max((rad - 0.28) / 0.05, 0)) * gl_Color.a); + gl_FragColor = vec4(gl_Color.rgb, (1.0 - max((rad - 0.28) / 0.05, 0.0)) * gl_Color.a); }