tesspot

view sdr/bezier.tc.glsl @ 0:72b7f9f2eead

initial commit
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 02 Dec 2012 08:23:51 +0200
parents
children
line source
1 #version 410 compatibility
3 layout(vertices = 16) out;
5 uniform int tess_level;
7 void main()
8 {
9 gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position;
11 gl_TessLevelInner[0] = tess_level;
12 gl_TessLevelInner[1] = tess_level;
14 gl_TessLevelOuter[0] = tess_level;
15 gl_TessLevelOuter[1] = tess_level;
16 gl_TessLevelOuter[2] = tess_level;
17 gl_TessLevelOuter[3] = tess_level;
18 }