[openrndr-demos] Add DemoTessShader03
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
layout(vertices = 4) out; // 4 points per patch
|
||||
|
||||
uniform int resolution;
|
||||
|
||||
|
||||
in vec3 va_position[];
|
||||
@@ -11,6 +12,6 @@ void main() {
|
||||
cva_position[gl_InvocationID] = va_position[gl_InvocationID];
|
||||
if(gl_InvocationID == 0) { // levels only need to be set once per patch
|
||||
gl_TessLevelOuter[0] = 1; // we're only tessellating one line
|
||||
gl_TessLevelOuter[1] = 4; // tessellate the line into 100 segments
|
||||
gl_TessLevelOuter[1] = resolution; // tessellate the line into 100 segments
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user