Merge pull request #20 from db48x/float-in-shader

Fix implicit conversion from int to float in distant_faded_icon_ps.txt, which isn't accepted by some hardware.
This commit is contained in:
Amy Ackermann
2018-07-26 17:17:11 -07:00
committed by GitHub
@@ -4,5 +4,5 @@ void main() {
float rad = length(uv - vec2(0.5)); float rad = length(uv - vec2(0.5));
if(rad > 0.33) if(rad > 0.33)
discard; 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);
} }