From 9908a7dc298cc9c20a99e3423bdb531b86a7eb56 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 16 Jun 2021 05:58:48 +0200 Subject: fix body height not clamping to image height, fix rounded rectangle shader border --- shaders/rounded_rectangle.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shaders') 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 -- cgit v1.2.3