|
@@ -486,76 +486,76 @@ void createGrass(Bildschirm* zScreen)
|
|
|
|
|
|
// first y plane
|
|
|
vertecies[0].pos = Vec3<float>(left, front + 0.2f, top);
|
|
|
- vertecies[0].tPos = Vec2<float>(0.f, 0.f);
|
|
|
+ vertecies[0].tPos = Vec2<float>(0.01f, 0.01f);
|
|
|
vertecies[1].pos = Vec3<float>(right, front + 0.2f, top);
|
|
|
- vertecies[1].tPos = Vec2<float>(1.f, 0.f);
|
|
|
+ vertecies[1].tPos = Vec2<float>(0.99f, 0.01f);
|
|
|
vertecies[2].pos = Vec3<float>(left, front + 0.2f, bottom);
|
|
|
- vertecies[2].tPos = Vec2<float>(0.f, 1.f);
|
|
|
+ vertecies[2].tPos = Vec2<float>(0.01f, 0.99f);
|
|
|
vertecies[3].pos = Vec3<float>(right, front + 0.2f, bottom);
|
|
|
- vertecies[3].tPos = Vec2<float>(1.f, 1.f);
|
|
|
+ vertecies[3].tPos = Vec2<float>(0.99f, 0.99f);
|
|
|
// second y plane
|
|
|
vertecies[4].pos = Vec3<float>(left, front + 0.4f, top);
|
|
|
- vertecies[4].tPos = Vec2<float>(0.f, 0.f);
|
|
|
+ vertecies[4].tPos = Vec2<float>(0.01f, 0.01f);
|
|
|
vertecies[5].pos = Vec3<float>(right, front + 0.4f, top);
|
|
|
- vertecies[5].tPos = Vec2<float>(1.f, 0.f);
|
|
|
+ vertecies[5].tPos = Vec2<float>(0.99f, 0.01f);
|
|
|
vertecies[6].pos = Vec3<float>(left, front + 0.4f, bottom);
|
|
|
- vertecies[6].tPos = Vec2<float>(0.f, 1.f);
|
|
|
+ vertecies[6].tPos = Vec2<float>(0.01f, 0.99f);
|
|
|
vertecies[7].pos = Vec3<float>(right, front + 0.4f, bottom);
|
|
|
- vertecies[7].tPos = Vec2<float>(1.f, 1.f);
|
|
|
+ vertecies[7].tPos = Vec2<float>(0.99f, 0.99f);
|
|
|
// third y plane
|
|
|
vertecies[8].pos = Vec3<float>(left, front + 0.6f, top);
|
|
|
- vertecies[8].tPos = Vec2<float>(0.f, 0.f);
|
|
|
+ vertecies[8].tPos = Vec2<float>(0.01f, 0.01f);
|
|
|
vertecies[9].pos = Vec3<float>(right, front + 0.6f, top);
|
|
|
- vertecies[9].tPos = Vec2<float>(1.f, 0.f);
|
|
|
+ vertecies[9].tPos = Vec2<float>(0.99f, 0.01f);
|
|
|
vertecies[10].pos = Vec3<float>(left, front + 0.6f, bottom);
|
|
|
- vertecies[10].tPos = Vec2<float>(0.f, 1.f);
|
|
|
+ vertecies[10].tPos = Vec2<float>(0.01f, 0.99f);
|
|
|
vertecies[11].pos = Vec3<float>(right, front + 0.6f, bottom);
|
|
|
- vertecies[11].tPos = Vec2<float>(1.f, 1.f);
|
|
|
+ vertecies[11].tPos = Vec2<float>(0.99f, 0.99f);
|
|
|
// forth y plane
|
|
|
vertecies[12].pos = Vec3<float>(left, front + 0.8f, top);
|
|
|
- vertecies[12].tPos = Vec2<float>(0.f, 0.f);
|
|
|
+ vertecies[12].tPos = Vec2<float>(0.01f, 0.01f);
|
|
|
vertecies[13].pos = Vec3<float>(right, front + 0.8f, top);
|
|
|
- vertecies[13].tPos = Vec2<float>(1.f, 0.f);
|
|
|
+ vertecies[13].tPos = Vec2<float>(0.99f, 0.01f);
|
|
|
vertecies[14].pos = Vec3<float>(left, front + 0.8f, bottom);
|
|
|
- vertecies[14].tPos = Vec2<float>(0.f, 1.f);
|
|
|
+ vertecies[14].tPos = Vec2<float>(0.01f, 0.99f);
|
|
|
vertecies[15].pos = Vec3<float>(right, front + 0.8f, bottom);
|
|
|
- vertecies[15].tPos = Vec2<float>(1.f, 1.f);
|
|
|
+ vertecies[15].tPos = Vec2<float>(0.99f, 0.99f);
|
|
|
// first x plane
|
|
|
vertecies[16].pos = Vec3<float>(right + 0.2f, front, top);
|
|
|
- vertecies[16].tPos = Vec2<float>(0.f, 0.f);
|
|
|
+ vertecies[16].tPos = Vec2<float>(0.01f, 0.01f);
|
|
|
vertecies[17].pos = Vec3<float>(right + 0.2f, back, top);
|
|
|
- vertecies[17].tPos = Vec2<float>(1.f, 0.f);
|
|
|
+ vertecies[17].tPos = Vec2<float>(0.99f, 0.01f);
|
|
|
vertecies[18].pos = Vec3<float>(right + 0.2f, front, bottom);
|
|
|
- vertecies[18].tPos = Vec2<float>(0.f, 1.f);
|
|
|
+ vertecies[18].tPos = Vec2<float>(0.01f, 0.99f);
|
|
|
vertecies[19].pos = Vec3<float>(right + 0.2f, back, bottom);
|
|
|
- vertecies[19].tPos = Vec2<float>(1.f, 1.f);
|
|
|
+ vertecies[19].tPos = Vec2<float>(0.99f, 0.99f);
|
|
|
// second x plane
|
|
|
vertecies[20].pos = Vec3<float>(right + 0.4f, front, top);
|
|
|
- vertecies[20].tPos = Vec2<float>(0.f, 0.f);
|
|
|
+ vertecies[20].tPos = Vec2<float>(0.01f, 0.01f);
|
|
|
vertecies[21].pos = Vec3<float>(right + 0.4f, back, top);
|
|
|
- vertecies[21].tPos = Vec2<float>(1.f, 0.f);
|
|
|
+ vertecies[21].tPos = Vec2<float>(0.99f, 0.01f);
|
|
|
vertecies[22].pos = Vec3<float>(right + 0.4f, front, bottom);
|
|
|
- vertecies[22].tPos = Vec2<float>(0.f, 1.f);
|
|
|
+ vertecies[22].tPos = Vec2<float>(0.01f, 0.99f);
|
|
|
vertecies[23].pos = Vec3<float>(right + 0.4f, back, bottom);
|
|
|
- vertecies[23].tPos = Vec2<float>(1.f, 1.f);
|
|
|
+ vertecies[23].tPos = Vec2<float>(0.99f, 0.99f);
|
|
|
// third x plane
|
|
|
vertecies[24].pos = Vec3<float>(right + 0.6f, front, top);
|
|
|
- vertecies[24].tPos = Vec2<float>(0.f, 0.f);
|
|
|
+ vertecies[24].tPos = Vec2<float>(0.01f, 0.01f);
|
|
|
vertecies[25].pos = Vec3<float>(right + 0.6f, back, top);
|
|
|
- vertecies[25].tPos = Vec2<float>(1.f, 0.f);
|
|
|
+ vertecies[25].tPos = Vec2<float>(0.99f, 0.01f);
|
|
|
vertecies[26].pos = Vec3<float>(right + 0.6f, front, bottom);
|
|
|
- vertecies[26].tPos = Vec2<float>(0.f, 1.f);
|
|
|
+ vertecies[26].tPos = Vec2<float>(0.01f, 0.99f);
|
|
|
vertecies[27].pos = Vec3<float>(right + 0.6f, back, bottom);
|
|
|
- vertecies[27].tPos = Vec2<float>(1.f, 1.f);
|
|
|
+ vertecies[27].tPos = Vec2<float>(0.99f, 0.99f);
|
|
|
// forth x plane
|
|
|
vertecies[28].pos = Vec3<float>(right + 0.8f, front, top);
|
|
|
- vertecies[28].tPos = Vec2<float>(0.f, 0.f);
|
|
|
+ vertecies[28].tPos = Vec2<float>(0.01f, 0.01f);
|
|
|
vertecies[29].pos = Vec3<float>(right + 0.8f, back, top);
|
|
|
- vertecies[29].tPos = Vec2<float>(1.f, 0.f);
|
|
|
+ vertecies[29].tPos = Vec2<float>(0.99f, 0.01f);
|
|
|
vertecies[30].pos = Vec3<float>(right + 0.8f, front, bottom);
|
|
|
- vertecies[30].tPos = Vec2<float>(0.f, 1.f);
|
|
|
+ vertecies[30].tPos = Vec2<float>(0.01f, 0.99f);
|
|
|
vertecies[31].pos = Vec3<float>(right + 0.8f, back, bottom);
|
|
|
- vertecies[31].tPos = Vec2<float>(1.f, 1.f);
|
|
|
+ vertecies[31].tPos = Vec2<float>(0.99f, 0.99f);
|
|
|
|
|
|
data->setVertecies(vertecies, 32);
|
|
|
|