View Full Version : discard vertices in vertex shader
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?
12-06-2006, 12:48 AM
12-06-2006, 01:22 AM
No, but it is possible in a geometry shader if you own a Geforce 8800
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 :)
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.
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.