Skip to content

Commit

Permalink
Overlap border and fill a bit to prevent bad artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Apostolique committed Nov 10, 2023
1 parent be2872f commit 08b8a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Content/apos-shapes.fx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ float4 SpritePixelShader(PixelInput p) : SV_TARGET {

d -= p.Meta2.z;

float4 c1 = p.Color1 * Antialias(d + lineSize * 2.0 + aaSize - ps * 0.5, aaSize);
float4 c1 = p.Color1 * Antialias(d + lineSize * 2.0 + aaSize - ps * 1.5, aaSize);
d = abs(d + lineSize) - lineSize;
float4 c2 = p.Color2 * Antialias(d, aaSize);

Expand Down

0 comments on commit 08b8a19

Please sign in to comment.