Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit c0a2d78

Browse files
authored
Merge pull request #270 from UnityTech/antialias
Fix transparent color issue.
2 parents 3e9b6cd + ca8b305 commit c0a2d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/Resources/UIWidgets_canvas.cginc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,5 @@ float strokeMask(float u, float v) {
185185
}
186186

187187
fixed4 frag_stroke_alpha(v2f i) : SV_Target {
188-
return shader_color(i) * strokeMask(i.ftcoord.x, i.ftcoord.y);
188+
return prealpha(shader_color(i)) * strokeMask(i.ftcoord.x, i.ftcoord.y);
189189
}

0 commit comments

Comments
 (0)