From 1fc81f4b660d8d562d017406b74c2e8cc5253914 Mon Sep 17 00:00:00 2001 From: mfranz Date: Tue, 11 Apr 2006 17:34:17 +0000 Subject: [PATCH] re-add hard-coded vertical distance. The coordinates should be surface points and not add this distance, which depends on the sign housing/hardware, after all. --- simgear/scene/tgdb/apt_signs.cxx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/simgear/scene/tgdb/apt_signs.cxx b/simgear/scene/tgdb/apt_signs.cxx index 488e470b..ef2e384d 100644 --- a/simgear/scene/tgdb/apt_signs.cxx +++ b/simgear/scene/tgdb/apt_signs.cxx @@ -256,6 +256,7 @@ ssgBranch *sgMakeTaxiSign( SGMaterialLib *matlib, // Part II: typeset double hpos = -total_width / 2; + const double dist = 0.5; // hard-code distance from surface for now sgVec3 normal; sgSetVec3(normal, 0, -1, 0); @@ -273,10 +274,10 @@ ssgBranch *sgMakeTaxiSign( SGMaterialLib *matlib, // vertices ssgVertexArray *vl = new ssgVertexArray(4); - vl->add(hpos, 0, 0); - vl->add(hpos + abswidth, 0, 0); - vl->add(hpos, 0, height); - vl->add(hpos + abswidth, 0, height); + vl->add(hpos, 0, dist); + vl->add(hpos + abswidth, 0, dist); + vl->add(hpos, 0, dist + height); + vl->add(hpos + abswidth, 0, dist + height); // texture coordinates ssgTexCoordArray *tl = new ssgTexCoordArray(4); -- 2.39.5