Discard vertices in vertex shader

I am aware of the possibility to discard fragmenets in the fragment shader, but is there also a possibility to get rid of vertices that I do not want to be drawn?

no

No, but it is possible in a geometry shader if you own a Geforce 8800

You can throw a vertex outside a clip plane, but you’d need to guarantee that all the verts for a given primative get throw or you’ll get some interesting effects :slight_smile:

Setting w to 0 will make it disappear. But as pocketmoon said you need to make sure you do it for all of the verts of the primitive.

the primitive ppart is no problem, I’m using points already. thanks i’m going to try to set the w to 0.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.