Skip to content

Commit a574797

Browse files
committed
Shader transparency fix
1 parent 5ca76a7 commit a574797

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • common/src/main/resources/assets/lambda/shaders/fragment/renderer

common/src/main/resources/assets/lambda/shaders/fragment/renderer/rect.frag

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ out vec4 color;
1212
void main() {
1313
vec2 halfSize = v_Size * 0.5;
1414

15-
float radius = v_RoundRadius;
15+
float radius = max(v_RoundRadius, SMOOTHING);
1616

1717
vec2 smoothVec = vec2(SMOOTHING);
1818
vec2 coord = mix(-smoothVec, v_Size + smoothVec, v_TexCoord);

0 commit comments

Comments
 (0)