Skip to content

Commit 5d9c8de

Browse files
committed
2 parents 7d39ba9 + 1215bb0 commit 5d9c8de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

canvasgl/src/main/java/com/chillingvan/canvasgl/shapeFilter/DrawCircleFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class DrawCircleFilter extends BasicDrawShapeFilter {
3535
+ " float dy = " + VARYING_DRAW_REGION_COORD + ".y - 0.5;\n"
3636
+ " float powVal = dx*dx + dy*dy; \n"
3737
+ " float subRadius = 0.5 - " + UNIFORM_LINE_WIDTH + "; \n"
38-
+ " if(powVal > subRadius * subRadius && powVal < 0.5 * 0.5) {\n"
38+
+ " if(powVal >= subRadius * subRadius && powVal <= 0.5 * 0.5) {\n"
3939
+ " gl_FragColor = " + COLOR_UNIFORM + ";\n"
4040
+ " } else {\n"
4141
+ " gl_FragColor = vec4(0, 0, 0, 0);\n"

0 commit comments

Comments
 (0)