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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user