refactor(Hi.Sample): follow HiGeom's Tri3d struct -- DemoDrawing reads the apexes through the indexer instead of the ps array

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
2026-09-24 12:19:45 +08:00
co-authored by Claude Fable 5.1
parent 6571576eaa
commit 060fb66029
+6 -6
View File
@@ -132,9 +132,9 @@ namespace Sample.Disp
vs[k++] = rgb.x;
vs[k++] = rgb.y;
vs[k++] = rgb.z;
vs[k++] = tri.ps[j].x;
vs[k++] = tri.ps[j].y;
vs[k++] = tri.ps[j].z;
vs[k++] = tri[j].x;
vs[k++] = tri[j].y;
vs[k++] = tri[j].z;
}
}
//V means Vertex; C means Color
@@ -157,9 +157,9 @@ namespace Sample.Disp
vs[k++] = nn.x;
vs[k++] = nn.y;
vs[k++] = nn.z;
vs[k++] = tri.ps[j].x;
vs[k++] = tri.ps[j].y;
vs[k++] = tri.ps[j].z;
vs[k++] = tri[j].x;
vs[k++] = tri[j].y;
vs[k++] = tri[j].z;
}
}
//V means Vertex; C means Color; N means Normal