Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: data/data_extern/programs/GLSL150/PassthroughGP.glsl @ 12202

Last change on this file since 12202 was 12115, checked in by wiesep, 6 years ago

Changed folder structure, deletet some unused files and cleaned up code

File size: 332 bytes
Line 
1#version 150
2
3layout(triangles) in;
4layout(triangle_strip, max_vertices = 3) out;
5
6/*
7  Basic pass through geometry shader for GLSL.
8  Assumes triangle input and output.
9*/
10void main()
11{
12    for (int i = 0; i < gl_in.length(); i++)
13    {
14        gl_Position = gl_in[i].gl_Position;
15        EmitVertex();
16    }
17    EndPrimitive();
18}
Note: See TracBrowser for help on using the repository browser.