From: Frederic Bouvier Date: Tue, 5 Oct 2010 06:30:52 +0000 (+0200) Subject: Use same transformation for generated ocean tiles than for regular tiles. Fix the... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=961fa89b7a7fab70dea2b1e4710ab0ebfef8787b;p=simgear.git Use same transformation for generated ocean tiles than for regular tiles. Fix the normal orientation that broke the new water shader --- 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();