Stipple code

I thought this bit of code might be useful for anyone searching to produce glstipple behavior in GLSL 3.3+:

if ((int(gl_FragCoord.x) % 2)==(int(gl_FragCoord.y) % 2)) discard;

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