]> git.mxchange.org Git - simgear.git/commitdiff
Use same transformation for generated ocean tiles than for regular tiles. Fix the...
authorFrederic Bouvier <fredfgfs01@free.fr>
Tue, 5 Oct 2010 06:30:52 +0000 (08:30 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Tue, 5 Oct 2010 06:30:52 +0000 (08:30 +0200)
simgear/scene/tgdb/SGOceanTile.cxx

index 7e7b590ca3a7050f2c4cce465dc28b45353885cd..2907bbacd691bf3a1e4b86fe92742e2bdbde69cd 100644 (file)
@@ -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();