@@ -662,7 +662,6 @@ void LevelGraphDebugRender::DrawNodes()
662
662
pvDecompress (vNorm, it->plane ());
663
663
PL.build (vertexPos, vNorm);
664
664
// create vertices
665
- #if 0
666
665
auto createVertex = [&](Fplane &pl, const Fvector &v)
667
666
{
668
667
const Fvector up = {0 , 1 , 0 };
@@ -675,15 +674,6 @@ void LevelGraphDebugRender::DrawNodes()
675
674
Fvector v2 = createVertex (PL, {vertexPos.x +st, vertexPos.y , vertexPos.z -st}); // maxX, minZ
676
675
Fvector v3 = createVertex (PL, {vertexPos.x +st, vertexPos.y , vertexPos.z +st}); // maxX, maxZ
677
676
Fvector v4 = createVertex (PL, {vertexPos.x -st, vertexPos.y , vertexPos.z +st}); // minX, maxZ
678
- #else
679
- Fvector v, v1, v2, v3, v4;
680
- const Fvector up = {0 , 1 , 0 };
681
- Fvector PC = vertexPos;
682
- v.set (PC.x - st, PC.y , PC.z - st); PL.intersectRayPoint (v, up, v1); v1.mad (v1, PL.n , tt); // minX,minZ
683
- v.set (PC.x + st, PC.y , PC.z - st); PL.intersectRayPoint (v, up, v2); v2.mad (v2, PL.n , tt); // maxX,minZ
684
- v.set (PC.x + st, PC.y , PC.z + st); PL.intersectRayPoint (v, up, v3); v3.mad (v3, PL.n , tt); // maxX,maxZ
685
- v.set (PC.x - st, PC.y , PC.z + st); PL.intersectRayPoint (v, up, v4); v4.mad (v4, PL.n , tt); // minX,maxZ
686
- #endif
687
677
// render quad
688
678
GlobalEnv.DRender ->dbg_DrawTRI (Fidentity, v3, v2, v1, colorT);
689
679
GlobalEnv.DRender ->dbg_DrawTRI (Fidentity, v1, v4, v3, colorT);
0 commit comments