How can I add a uniform width outline to WebGL shader drawn circles/ellipses (drawn using edge/distance antialiasing)
问题 I am drawing circles/ellipses in WebGL using a single Quad and a fragment shader, in order to draw them in a resolution independent manner (Edge distance anti-aliasing) Here is my fragment shader currently: '#extension GL_OES_standard_derivatives : enable', 'precision mediump float;', 'varying vec2 coord;', 'vec4 circleColor = vec4(1.0, 0.5, 0.0, 1.0);', 'vec4 outlineColor = vec4(0.0, 0.0, 0.0, 1.0);', 'uniform float strokeWidth;', 'float outerEdgeCenter = 0.5 - strokeWidth;', 'void main(void