Skip to content

Commit 1944b3f

Browse files
committed
fix antialias outline artefact
1 parent 7095408 commit 1944b3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

code/chapter-09/agg-segments.py

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
d = exp(-d*d);
6767
gl_FragColor = vec4(0.0, 0.0, 0.0, d*v_alpha);
6868
}
69+
else {
70+
gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);
71+
}
6972
} """
7073

7174
window = app.Window(1200, 400, color=(1,1,1,1))

0 commit comments

Comments
 (0)