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:
+6
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user