Commit e4e5573a authored by Kersten Schuster's avatar Kersten Schuster

flipped quad y-coord so that backface culling works correctly.

parent ff9d62f2
......@@ -71,10 +71,10 @@ public:
ab->setObjectLabel("Quad");
ab->defineAttributes(attributes);
VertexT data[] = {
gen(minCoord.x, minCoord.y), //
gen(minCoord.x, maxCoord.y), //
gen(maxCoord.x, minCoord.y), //
gen(maxCoord.x, maxCoord.y),
gen(minCoord.x, minCoord.y), //
gen(maxCoord.x, maxCoord.y), //
gen(maxCoord.x, minCoord.y),
};
ab->bind().setData(data);
auto va = VertexArray::create(ab, nullptr, GL_TRIANGLE_STRIP);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment