From 961fa89b7a7fab70dea2b1e4710ab0ebfef8787b Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Tue, 5 Oct 2010 08:30:52 +0200 Subject: [PATCH] Use same transformation for generated ocean tiles than for regular tiles. Fix the normal orientation that broke the new water shader --- simgear/scene/tgdb/SGOceanTile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simgear/scene/tgdb/SGOceanTile.cxx b/simgear/scene/tgdb/SGOceanTile.cxx index 7e7b590c..2907bbac 100644 --- a/simgear/scene/tgdb/SGOceanTile.cxx +++ b/simgear/scene/tgdb/SGOceanTile.cxx @@ -281,7 +281,7 @@ osg::Node* SGOceanTile(const SGBucket& b, SGMaterialLib *matlib) // Calculate center point SGVec3d cartCenter = SGVec3d::fromGeod(b.get_center()); SGGeod geodPos = SGGeod::fromCart(cartCenter); - SGQuatd hlOr = SGQuatd::fromLonLat(geodPos); + SGQuatd hlOr = SGQuatd::fromLonLat(geodPos)*SGQuatd::fromEulerDeg(0, 0, 180); double clon = b.get_center_lon(); double clat = b.get_center_lat(); -- 2.39.5