Back to home page

EIC code displayed by LXR

 
 

    


Warning, /eic-opticks/sysrap/gl/wireframe/geom.glsl is written in an unsupported language. File is not indexed.

0001 #version 410 core
0002 // https://stackoverflow.com/questions/137629/how-do-you-render-primitives-as-wireframes-in-opengl
0003 
0004 layout (triangles) in;
0005 layout (line_strip, max_vertices=3) out;
0006 
0007 in vec4 v_color[];  // vertex colors from Vertex Shader
0008 out vec4 g_color ; 
0009 
0010 void main(void)
0011 {
0012     int i;
0013     for (i = 0; i < gl_in.length(); i++)
0014     {
0015         g_color=v_color[i]; 
0016         gl_Position = gl_in[i].gl_Position; 
0017         EmitVertex();
0018     }
0019     EndPrimitive();
0020 }
0021