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

Commit 0eb4afb

Browse files
author
Yuncong Zhang
committed
Fix extra line issues.
1 parent 773b895 commit 0eb4afb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Runtime/Resources/UIWidgets_canvas_strokeAlpha.shader

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Shader "UIWidgets/canvas_strokeAlpha"
99
SubShader {
1010
ZTest Always
1111
ZWrite Off
12-
Blend [_SrcBlend] [_DstBlend]
12+
Blend OneMinusDstAlpha One
1313

1414
Stencil {
1515
Ref 128

Runtime/ui/renderer/common/geometry/path/path_cache.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,10 +641,10 @@ public void computeFillMesh(float fringe, out bool convex) {
641641
}
642642

643643
if (path.nstroke > 0) {
644-
strokeIndices.Add(path.nstroke - 1);
645-
strokeIndices.Add(path.nstroke - 2);
644+
strokeIndices.Add(path.istroke + path.nstroke - 1);
645+
strokeIndices.Add(path.istroke + path.nstroke - 2);
646646
strokeIndices.Add(path.istroke);
647-
strokeIndices.Add(path.nstroke - 1);
647+
strokeIndices.Add(path.istroke + path.nstroke - 1);
648648
strokeIndices.Add(path.istroke);
649649
strokeIndices.Add(path.istroke + 1);
650650
for (var j = 2; j < path.nstroke; j++) {

0 commit comments

Comments
 (0)