diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-06-16 05:58:48 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-06-16 05:58:48 +0200 |
commit | 9908a7dc298cc9c20a99e3423bdb531b86a7eb56 (patch) | |
tree | ea36441e54db04304e73a32975741d110e86fb53 /shaders | |
parent | cde1537e9a0f57169814687a17f458132a130a37 (diff) |
fix body height not clamping to image height, fix rounded rectangle shader border
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/rounded_rectangle.glsl | 2 |
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 |