View Full Version : skipping fragments
02-18-2007, 02:08 PM
how would one skip a fragment (alpha = 0) in GLSL... without using blending or alpha texting... i think ive read somewhere of such a function
02-18-2007, 02:46 PM
The "discard" keyword throws the current fragment away.
02-18-2007, 06:37 PM
Just to clarify, discard is a keyword. To optionally discard a pixel, you do this:
if ( alpha == 0)
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.