6 ms·
The first triangle is still in 3d space but the z coordinates are set to 0
by z3phyr 7y ago
The first triangle is still in 3d space but the z coordinates are set to 0
- manfredo 7y agoOr you can just not define a z coordinate in the vertex buffer object (at least, in opengl). I think the vertex shader might still need to output a 3rd coordinate. But you can always just discard it.