Reduce the texture coords for trees.
Support winter, summer and snow textures on single texture sheet.
This commit is contained in:
parent
1f43132363
commit
df46c58cb8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user