Files
starruler-linux/data/shaders/source/distant_faded_icon_ps.txt
T
Daniel Brooks 43e09c80eb fix the float
fixes #16
2018-07-26 13:48:53 -07:00

9 lines
194 B
Plaintext

varying vec2 uv;
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.0)) * gl_Color.a);
}