aboutsummaryrefslogtreecommitdiff
path: root/shaders
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-06-16 05:58:48 +0200
committerdec05eba <dec05eba@protonmail.com>2021-06-16 05:58:48 +0200
commit9908a7dc298cc9c20a99e3423bdb531b86a7eb56 (patch)
treeea36441e54db04304e73a32975741d110e86fb53 /shaders
parentcde1537e9a0f57169814687a17f458132a130a37 (diff)
fix body height not clamping to image height, fix rounded rectangle shader border
Diffstat (limited to 'shaders')
-rw-r--r--shaders/rounded_rectangle.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/rounded_rectangle.glsl b/shaders/rounded_rectangle.glsl
index 5af174b..7c797f2 100644
--- a/shaders/rounded_rectangle.glsl
+++ b/shaders/rounded_rectangle.glsl
@@ -21,5 +21,5 @@ void main() {
vec4 front_color = mix(gl_Color, band_color, band_blend.x*band_blend.y);
float shadow_a = 1.0 - smoothstep(0.0, shadow_offset.x, rect_dist);
front_color.a *= a;
- gl_FragColor = mix(front_color, vec4(0.0, 0.0, 0.0, 0.14), shadow_a - a);
+ gl_FragColor = mix(front_color, vec4(0.0, 0.0, 0.0, 0.14), clamp(shadow_a - a, 0.0, 1.0));
} \ No newline at end of file