Skip to content

Commit

Permalink
fix: the ItemViewport's corners is not smooth
Browse files Browse the repository at this point in the history
Its added in c7276ae, the "if (mask_tex.a < 1.0)" is for debug, the
code should same as qt6/src/shaders_ng/quickitemviewport.frag.
  • Loading branch information
zccrs committed Jul 8, 2024
1 parent a3ce848 commit 8c91354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qt6/src/shaders_ng/quickitemviewport-opaque.frag
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void main()
lowp vec4 mask_bottom_right = texture(mask, tex_bottom_right);
lowp vec4 mask_tex = mask_top_left * mask_bottom_left * mask_top_right * mask_bottom_right;

if (mask_tex.a < 1.0)
if (mask_tex.a == 0.0)
discard;

lowp vec4 tex = texture(qt_Texture, qt_TexCoord);
Expand Down

0 comments on commit 8c91354

Please sign in to comment.