Skip to content

Commit fa6ddaf

Browse files
author
nitrocaster
committed
Delete old code.
1 parent e1fa93f commit fa6ddaf

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/xrGame/LevelGraphDebugRender.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,6 @@ void LevelGraphDebugRender::DrawNodes()
662662
pvDecompress(vNorm, it->plane());
663663
PL.build(vertexPos, vNorm);
664664
// create vertices
665-
#if 0
666665
auto createVertex = [&](Fplane &pl, const Fvector &v)
667666
{
668667
const Fvector up = {0, 1, 0};
@@ -675,15 +674,6 @@ void LevelGraphDebugRender::DrawNodes()
675674
Fvector v2 = createVertex(PL, {vertexPos.x+st, vertexPos.y, vertexPos.z-st}); // maxX, minZ
676675
Fvector v3 = createVertex(PL, {vertexPos.x+st, vertexPos.y, vertexPos.z+st}); // maxX, maxZ
677676
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
687677
// render quad
688678
GlobalEnv.DRender->dbg_DrawTRI(Fidentity, v3, v2, v1, colorT);
689679
GlobalEnv.DRender->dbg_DrawTRI(Fidentity, v1, v4, v3, colorT);

0 commit comments

Comments
 (0)