"KIL" equivalent in GLSL
Is there a "KIL" (like the one in ARB_fragment_program) equivalent in GLSL that will kill the current pixel render? Basically I want to do clipping in my fragment shader...Hell is there a clip command like HLSL? I looked in the reference manual but couldn't seem to find any such function.
Thanks!
I'm not sure what you mean, but there's a GLSL discard keyword for the fragment shader that cancels rendering of the current fragment.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement