]> git.mxchange.org Git - simgear.git/commitdiff
Fix ocean texture scaling problem.
authortimoore <timoore>
Tue, 31 Jul 2007 06:39:26 +0000 (06:39 +0000)
committertimoore <timoore>
Tue, 31 Jul 2007 06:39:26 +0000 (06:39 +0000)
simgear/scene/tgdb/SGOceanTile.cxx

index 48b55562d1a2e0a81b4ccf01b3e79dff58136a31..911553f3166491dee64776964284f580f906ef94 100644 (file)
@@ -92,7 +92,9 @@ osg::Node* SGOceanTile(const SGBucket& b, SGMaterialLib *matlib)
   rectangle.clear();
   rectangle.reserve(4);
   for ( i = 0; i < 4; ++i ) {
-    geod_nodes.push_back( Point3D::fromSGGeod(geod[i]) );
+    geod_nodes.push_back(Point3D(geod[i].getLongitudeDeg(),
+                                 geod[i].getLatitudeDeg(),
+                                 geod[i].getElevationM()));
     rectangle.push_back( i );
   }
   point_list texs = sgCalcTexCoords( b, geod_nodes, rectangle,