"KIL" equivalent in GLSL

Started by
2 comments, last by thedigga007 16 years, 1 month ago
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!
Advertisement
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.
doh! Found it in the specs....RTFM I know I know...didn't realize there was a "discard" keyword.
damn you beat me to the reply! I thought I was gonna save a lil' face >.>

This topic is closed to new replies.

Advertisement