1 2 3 4 5 6 7 8 9 10 11 12 13 14
#version 310 es layout(location = 0) in float rand; void main() { vec4 pos; if (rand > 0.5) { pos = vec4(1.0); } gl_Position = pos; }