diff options
Diffstat (limited to 'shaders/rounded_rectangle_no_shadow.glsl')
-rw-r--r-- | shaders/rounded_rectangle_no_shadow.glsl | 2 |
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 |