PDA

View Full Version : Stipple code



JoshKlint
11-26-2010, 03:21 PM
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;