You say setting the vertex to 0 does not work. How does it not work?
If you set the position of all the vertices of the triangle to (0.0, 0.0, 0.0), then the resulting triangle will have a zero size and should not be drawn. Just make sure you can set it to off screen instead of zero.
source
share