Use square textures for trees, with shrunk UV coordinates.
This commit is contained in:
parent
01104cc1d3
commit
0f798289f0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user