From fec769f632a18001aa3aae87b8c200dd202bf3a5 Mon Sep 17 00:00:00 2001 From: mfranz Date: Wed, 12 Apr 2006 12:13:03 +0000 Subject: [PATCH] set sign orientation such, that when the sign heading=0, one looks straight on the sign face when looking North --- simgear/scene/tgdb/apt_signs.cxx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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); -- 2.39.5