Skipping fragments

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

The “discard” keyword throws the current fragment away.

Just to clarify, discard is a keyword. To optionally discard a pixel, you do this:

if ( alpha == 0)


This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.