aboutsummaryrefslogtreecommitdiff
path: root/shaders/rounded_rectangle_no_shadow.glsl
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-01-23 01:14:28 +0100
committerdec05eba <dec05eba@protonmail.com>2022-01-23 01:14:28 +0100
commit4ac963533bd7e538febf001cc158fcbd46f0267a (patch)
treeb975148ff9a0a9729d8dd57cf7905dcfa411190d /shaders/rounded_rectangle_no_shadow.glsl
parent0c71b0a9deb822c2acb89efdc21397fc195e82bf (diff)
4chan: do not reset comment navigation on next video, fix alpha color in rounded rectangle shader
Diffstat (limited to 'shaders/rounded_rectangle_no_shadow.glsl')
-rw-r--r--shaders/rounded_rectangle_no_shadow.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/rounded_rectangle_no_shadow.glsl b/shaders/rounded_rectangle_no_shadow.glsl
index b12b35c..fe8b48f 100644
--- a/shaders/rounded_rectangle_no_shadow.glsl
+++ b/shaders/rounded_rectangle_no_shadow.glsl
@@ -13,5 +13,5 @@ void main() {
float rect_dist = rounded_rect(uv - center, size, radius);
float a = clamp(1.0 - smoothstep(0.0, 1.0, rect_dist), 0.0, 1.0);
- gl_FragColor = vec4(gl_Color.rgb, a);
+ gl_FragColor = vec4(gl_Color.rgb, gl_Color.a * a);
} \ No newline at end of file