From: Stuart Buchanan Date: Sun, 19 May 2013 20:29:58 +0000 (+0100) Subject: Use square textures for trees, with shrunk UV coordinates. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f798289f053e20d695302c6803c647c0f2d3832;p=simgear.git Use square textures for trees, with shrunk UV coordinates. --- diff --git a/simgear/scene/tgdb/TreeBin.cxx b/simgear/scene/tgdb/TreeBin.cxx index f8e31e6f..accac411 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.234f)); + t->push_back(Vec2(variety, 0.234f)); } Geometry* result = new Geometry; result->setVertexArray(v);