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