Initial commit
This commit is contained in:
19
documents/Tesselation_Tutorial/shader/tess_geo.txt
Normal file
19
documents/Tesselation_Tutorial/shader/tess_geo.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
#version 410 core
|
||||
|
||||
layout(triangles, invocations = 1) in;
|
||||
layout(line_strip, max_vertices = 4) out;
|
||||
|
||||
|
||||
void main(void)
|
||||
{
|
||||
gl_Position = gl_in[0].gl_Position;
|
||||
EmitVertex();
|
||||
gl_Position = gl_in[1].gl_Position;
|
||||
EmitVertex();
|
||||
gl_Position = gl_in[2].gl_Position;
|
||||
EmitVertex();
|
||||
//gl_Position = gl_in[3].gl_Position;
|
||||
//EmitVertex();
|
||||
|
||||
EndPrimitive();
|
||||
}
|
||||
Reference in New Issue
Block a user