PDA

View Full Version : discard vertices in vertex shader



Dylan
12-06-2006, 12:35 AM
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?

Zengar
12-06-2006, 12:48 AM
no

CaseMillennium
12-06-2006, 01:22 AM
No, but it is possible in a geometry shader if you own a Geforce 8800

pocketmoon
12-06-2006, 01:27 AM
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 :)

MalcolmB
12-06-2006, 06:27 AM
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.

Dylan
12-06-2006, 09:38 AM
the primitive ppart is no problem, I'm using points already. thanks i'm going to try to set the w to 0.