From: Stuart Buchanan Date: Sat, 20 Apr 2013 20:05:55 +0000 (+0100) Subject: Reduce the texture coords for trees. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=df46c58cb8151c2a20cdfd91c2c98fc2e3c15a8b;p=simgear.git Reduce the texture coords for trees. Support winter, summer and snow textures on single texture sheet. --- diff --git a/simgear/scene/tgdb/TreeBin.cxx b/simgear/scene/tgdb/TreeBin.cxx index f8e31e6f..3f67483a 100644 --- a/simgear/scene/tgdb/TreeBin.cxx +++ b/simgear/scene/tgdb/TreeBin.cxx @@ -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);