• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#version 400
2layout (points) in ;
3layout (invocations = 2) in ;
4layout (line_strip, max_vertices = 2) out ;
5void main() {
6    gl_Position = gl_in[0].gl_Position + vec4(-0.5, 0.0, 0.0, float(gl_InvocationID));
7    EmitVertex();
8    gl_Position = gl_in[0].gl_Position + vec4(0.5, 0.0, 0.0, float(gl_InvocationID));
9    EmitVertex();
10    EndPrimitive();
11}
12