Reduce the texture coords for trees.
Support winter, summer and snow textures on single texture sheet.
This commit is contained in:
@@ -138,8 +138,8 @@ Geometry* makeSharedTreeGeometry(int numQuads)
|
|||||||
float variety = mt_rand(&seed);
|
float variety = mt_rand(&seed);
|
||||||
t->push_back(Vec2(variety, 0.0f));
|
t->push_back(Vec2(variety, 0.0f));
|
||||||
t->push_back(Vec2(variety + 1.0f, 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, 0.25f));
|
||||||
t->push_back(Vec2(variety, 1.0f));
|
t->push_back(Vec2(variety, 0.25f));
|
||||||
}
|
}
|
||||||
Geometry* result = new Geometry;
|
Geometry* result = new Geometry;
|
||||||
result->setVertexArray(v);
|
result->setVertexArray(v);
|
||||||
|
|||||||
Reference in New Issue
Block a user