From df46c58cb8151c2a20cdfd91c2c98fc2e3c15a8b Mon Sep 17 00:00:00 2001 From: Stuart Buchanan Date: Sat, 20 Apr 2013 21:05:55 +0100 Subject: [PATCH] Reduce the texture coords for trees. Support winter, summer and snow textures on single texture sheet. --- simgear/scene/tgdb/TreeBin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5