From: timoore Date: Tue, 31 Jul 2007 06:39:26 +0000 (+0000) Subject: Fix ocean texture scaling problem. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb49a9192eaaf848eed3dca3dfc758643247d0f4;p=simgear.git Fix ocean texture scaling problem. --- diff --git a/simgear/scene/tgdb/SGOceanTile.cxx b/simgear/scene/tgdb/SGOceanTile.cxx index 48b55562..911553f3 100644 --- a/simgear/scene/tgdb/SGOceanTile.cxx +++ b/simgear/scene/tgdb/SGOceanTile.cxx @@ -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,