From: mfranz Date: Tue, 11 Apr 2006 17:34:17 +0000 (+0000) Subject: re-add hard-coded vertical distance. The coordinates should be surface X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1fc81f4b660d8d562d017406b74c2e8cc5253914;p=simgear.git 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. --- 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);