From 1c2d2110759b5da71c41c31a5e1754e5320884ed Mon Sep 17 00:00:00 2001 From: ikpil Date: Tue, 22 Aug 2023 23:26:04 +0900 Subject: [PATCH] typo --- .../Tools/JumpLinkBuilderSampleTool.cs | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/src/DotRecast.Recast.Demo/Tools/JumpLinkBuilderSampleTool.cs b/src/DotRecast.Recast.Demo/Tools/JumpLinkBuilderSampleTool.cs index c0f4fa8..ffe0e11 100644 --- a/src/DotRecast.Recast.Demo/Tools/JumpLinkBuilderSampleTool.cs +++ b/src/DotRecast.Recast.Demo/Tools/JumpLinkBuilderSampleTool.cs @@ -139,10 +139,8 @@ public class JumpLinkBuilderSampleTool : ISampleTool int u = (j * 255) / link.nspine; int col = DuTransCol(DuLerpCol(col0, col1, u), 128); dd.Vertex(link.spine1[j * 3], link.spine1[j * 3 + 1], link.spine1[j * 3 + 2], col); - dd.Vertex(link.spine1[(j + 1) * 3], link.spine1[(j + 1) * 3 + 1], link.spine1[(j + 1) * 3 + 2], - col); - dd.Vertex(link.spine0[(j + 1) * 3], link.spine0[(j + 1) * 3 + 1], link.spine0[(j + 1) * 3 + 2], - col); + dd.Vertex(link.spine1[(j + 1) * 3], link.spine1[(j + 1) * 3 + 1], link.spine1[(j + 1) * 3 + 2], col); + dd.Vertex(link.spine0[(j + 1) * 3], link.spine0[(j + 1) * 3 + 1], link.spine0[(j + 1) * 3 + 2], col); dd.Vertex(link.spine0[j * 3], link.spine0[j * 3 + 1], link.spine0[j * 3 + 2], col); } } @@ -157,20 +155,16 @@ public class JumpLinkBuilderSampleTool : ISampleTool int col = DuTransCol(DuDarkenCol(col1) /*DuDarkenCol(DuLerpCol(col0,col1,u))*/, 128); dd.Vertex(link.spine0[j * 3], link.spine0[j * 3 + 1], link.spine0[j * 3 + 2], col); - dd.Vertex(link.spine0[(j + 1) * 3], link.spine0[(j + 1) * 3 + 1], link.spine0[(j + 1) * 3 + 2], - col); + dd.Vertex(link.spine0[(j + 1) * 3], link.spine0[(j + 1) * 3 + 1], link.spine0[(j + 1) * 3 + 2], col); dd.Vertex(link.spine1[j * 3], link.spine1[j * 3 + 1], link.spine1[j * 3 + 2], col); - dd.Vertex(link.spine1[(j + 1) * 3], link.spine1[(j + 1) * 3 + 1], link.spine1[(j + 1) * 3 + 2], - col); + dd.Vertex(link.spine1[(j + 1) * 3], link.spine1[(j + 1) * 3 + 1], link.spine1[(j + 1) * 3 + 2], col); } dd.Vertex(link.spine0[0], link.spine0[1], link.spine0[2], DuDarkenCol(col1)); dd.Vertex(link.spine1[0], link.spine1[1], link.spine1[2], DuDarkenCol(col1)); - dd.Vertex(link.spine0[(link.nspine - 1) * 3], link.spine0[(link.nspine - 1) * 3 + 1], - link.spine0[(link.nspine - 1) * 3 + 2], DuDarkenCol(col1)); - dd.Vertex(link.spine1[(link.nspine - 1) * 3], link.spine1[(link.nspine - 1) * 3 + 1], - link.spine1[(link.nspine - 1) * 3 + 2], DuDarkenCol(col1)); + dd.Vertex(link.spine0[(link.nspine - 1) * 3], link.spine0[(link.nspine - 1) * 3 + 1], link.spine0[(link.nspine - 1) * 3 + 2], DuDarkenCol(col1)); + dd.Vertex(link.spine1[(link.nspine - 1) * 3], link.spine1[(link.nspine - 1) * 3 + 1], link.spine1[(link.nspine - 1) * 3 + 2], DuDarkenCol(col1)); } dd.End(); @@ -184,8 +178,7 @@ public class JumpLinkBuilderSampleTool : ISampleTool { float r = link.start.height; - int col = DuLerpCol(DuRGBA(255, 192, 0, 255), - DuRGBA(255, 255, 255, 255), 64); + int col = DuLerpCol(DuRGBA(255, 192, 0, 255), DuRGBA(255, 255, 255, 255), 64); int cola = DuTransCol(col, 192); int colb = DuRGBA(255, 255, 255, 255);