]> git.mxchange.org Git - simgear.git/commitdiff
Reduce the texture coords for trees.
authorStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Sat, 20 Apr 2013 20:05:55 +0000 (21:05 +0100)
committerStuart Buchanan <stuart_d_buchanan@yahoo.co.uk>
Sat, 20 Apr 2013 20:05:55 +0000 (21:05 +0100)
Support winter, summer and snow textures on single texture sheet.

simgear/scene/tgdb/TreeBin.cxx

index f8e31e6f5e7a87c5c7e4680dfe309615e451d05c..3f67483ac6847576c5cfa177bc3caab2a062e912 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.25f));
+        t->push_back(Vec2(variety, 0.25f));
     }
     Geometry* result = new Geometry;
     result->setVertexArray(v);