fix shaders for the transform tool

This commit is contained in:
2018-11-25 16:16:01 +01:00
parent a124d19bdc
commit 0d0cd3db7f
8 changed files with 100 additions and 98 deletions

View File

@@ -205,7 +205,7 @@ void Plane::create_impl(float w, float h, int div, GLushort *idx, vertex_t *vert
v.pos.y = oy + dy * (float)y;
v.pos.z = 0;
v.pos.w = 1;
v.uvs = glm::vec2(x, y) / (float)div;
v.uvs2 = v.uvs = glm::vec2(x, y) / (float)div;
*vertices++ = v;
}
}