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

Commit ca8b305

Browse files
author
Yuncong Zhang
committed
Fix transparent color issue.
1 parent edd1e93 commit ca8b305

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)