Reduce the texture coords for trees.

Support winter, summer and snow textures on single texture sheet.
This commit is contained in:
Stuart Buchanan 2013-04-20 21:05:55 +01:00
parent 1f43132363
commit df46c58cb8

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