View Full Version : skipping fragments
02-18-2007, 03: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, 03:46 PM
The "discard" keyword throws the current fragment away.
02-18-2007, 07: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 © 2017 vBulletin Solutions, Inc. All rights reserved.