View Full Version : discard vertices in vertex shader
12-05-2006, 11:35 PM
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-05-2006, 11:48 PM
12-06-2006, 12:22 AM
No, but it is possible in a geometry shader if you own a Geforce 8800
12-06-2006, 12: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, 05: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, 08: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 © 2017 vBulletin Solutions, Inc. All rights reserved.