]> git.mxchange.org Git - simgear.git/commitdiff
Use square textures for trees, with shrunk UV coordinates.
authorStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Sun, 19 May 2013 20:29:58 +0000 (21:29 +0100)
committerStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Sun, 19 May 2013 20:29:58 +0000 (21:29 +0100)
simgear/scene/tgdb/TreeBin.cxx

index f8e31e6f5e7a87c5c7e4680dfe309615e451d05c..accac4110e1a72e62506f7dab87f4570399cfead 100644 (file)
@@ -138,8 +138,8 @@ Geometry* makeSharedTreeGeometry(int numQuads)
         float variety = mt_rand(&seed);
         t->push_back(Vec2(variety, 0.0f));
         t->push_back(Vec2(variety + 1.0f, 0.0f));
-        t->push_back(Vec2(variety + 1.0f, 1.0f));
-        t->push_back(Vec2(variety, 1.0f));
+        t->push_back(Vec2(variety + 1.0f, 0.234f));
+        t->push_back(Vec2(variety, 0.234f));
     }
     Geometry* result = new Geometry;
     result->setVertexArray(v);