summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill McKinnon <[email protected]>2023-04-30 14:06:57 -0400
committerWill McKinnon <[email protected]>2023-04-30 14:06:57 -0400
commit15db638ccb95d613112786ab4ec34252a8e30c92 (patch)
tree8bfcc5f588ab19112328d15a075399638e6b6ebb
parentd86e34929008f5a0f54e1561f3c6584248c9b192 (diff)
improved stenciling region
-rw-r--r--sway/desktop/fx_renderer/shaders/stencil_mask.frag2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/fx_renderer/shaders/stencil_mask.frag b/sway/desktop/fx_renderer/shaders/stencil_mask.frag
index 496981ef..ee033070 100644
--- a/sway/desktop/fx_renderer/shaders/stencil_mask.frag
+++ b/sway/desktop/fx_renderer/shaders/stencil_mask.frag
@@ -11,7 +11,7 @@ void main() {
float smoothedAlpha = 1.0 - smoothstep(-1.0, 0.5, dist);
gl_FragColor = mix(vec4(0.0), vec4(1.0), smoothedAlpha);
- if (gl_FragColor.a == 0.0) {
+ if (gl_FragColor.a < 1.0) {
discard;
}
}