summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2023-02-16 20:51:23 -0500
committerDavid Thompson <dthompson2@worcester.edu>2023-06-08 08:14:41 -0400
commit31712743cae72f5ea43aad140cd2df4f1a385364 (patch)
tree9507e620f0b0d815ed39d2782f1957994ea4e70d
parent92a3951c0823c3be804ca92c78710a6a3d1e7a69 (diff)
Use discard form in path shaders.
-rw-r--r--chickadee/graphics/path.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/chickadee/graphics/path.scm b/chickadee/graphics/path.scm
index f6bfcdb..e2952dd 100644
--- a/chickadee/graphics/path.scm
+++ b/chickadee/graphics/path.scm
@@ -1250,7 +1250,7 @@
(uniform int stroke-cap)
(uniform float stroke-miter-limit))
(if (<= (-> color w) 0.0)
- (outputs)
+ (discard)
(let* ((infinity (/ 1.0 0.0))
(hw (/ stroke-width 2.0))
(u (-> frag-tex x))
@@ -1323,7 +1323,7 @@
0.0 1.0)))
(mix color end-color t)))))
(if (<= (-> color w) 0.0)
- (outputs)
+ (discard)
(outputs
(frag-color
(case mode