Use square textures for trees, with shrunk UV coordinates.

This commit is contained in:
Stuart Buchanan 2013-05-19 21:29:58 +01:00
parent 01104cc1d3
commit 0f798289f0

View 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);