Use same transformation for generated ocean tiles than for regular tiles. Fix the normal orientation that broke the new water shader

This commit is contained in:
Frederic Bouvier
2010-10-05 08:30:52 +02:00
parent b5f3978b8a
commit 961fa89b7a

View 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();