From: mfranz Date: Wed, 12 Apr 2006 12:13:03 +0000 (+0000) Subject: set sign orientation such, that when the sign heading=0, one looks straight X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fec769f632a18001aa3aae87b8c200dd202bf3a5;p=simgear.git set sign orientation such, that when the sign heading=0, one looks straight on the sign face when looking North --- diff --git a/simgear/scene/tgdb/apt_signs.cxx b/simgear/scene/tgdb/apt_signs.cxx index b3868d34..ebd626d4 100644 --- a/simgear/scene/tgdb/apt_signs.cxx +++ b/simgear/scene/tgdb/apt_signs.cxx @@ -274,10 +274,10 @@ ssgBranch *sgMakeTaxiSign( SGMaterialLib *matlib, // vertices ssgVertexArray *vl = new ssgVertexArray(4); - vl->add(hpos, 0, dist); - vl->add(hpos + abswidth, 0, dist); - vl->add(hpos, 0, dist + height); - vl->add(hpos + abswidth, 0, dist + height); + vl->add(0, hpos, dist); + vl->add(0, hpos + abswidth, dist); + vl->add(0, hpos, dist + height); + vl->add(0, hpos + abswidth, dist + height); // texture coordinates ssgTexCoordArray *tl = new ssgTexCoordArray(4); @@ -311,10 +311,10 @@ ssgBranch *sgMakeTaxiSign( SGMaterialLib *matlib, // minimalistic backside ssgVertexArray *vl = new ssgVertexArray(4); - vl->add(hpos, 0, dist); - vl->add(hpos - total_width, 0, dist); - vl->add(hpos, 0, dist + sign_height); - vl->add(hpos - total_width, 0, dist + sign_height); + vl->add(0, hpos, dist); + vl->add(0, hpos - total_width, dist); + vl->add(0, hpos, dist + sign_height); + vl->add(0, hpos - total_width, dist + sign_height); ssgNormalArray *nl = new ssgNormalArray(1); nl->add(0, 1, 0);