blob: d338e4c4b01ec846c256f718fbe248091163d9e5 [file] [log] [blame]
#version 100
precision mediump float;
varying highp vec4 vinCircleEdge_Stage0;
varying mediump vec4 vinColor_Stage0;
void main() {
vec4 outputColor_Stage0;
vec4 outputCoverage_Stage0;
{
highp vec4 circleEdge;
circleEdge = vinCircleEdge_Stage0;
outputColor_Stage0 = vinColor_Stage0;
highp float d = length(circleEdge.xy);
float distanceToOuterEdge = circleEdge.z * (1.0 - d);
float edgeAlpha = clamp(distanceToOuterEdge, 0.0, 1.0);
outputCoverage_Stage0 = vec4(edgeAlpha);
}
{
gl_FragColor = outputColor_Stage0 * outputCoverage_Stage0;
}
}