Support winter, summer and snow textures on single texture sheet.
float variety = mt_rand(&seed);
t->push_back(Vec2(variety, 0.0f));
t->push_back(Vec2(variety + 1.0f, 0.0f));
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);
}
Geometry* result = new Geometry;
result->setVertexArray(v);