Bump to OPENRNDR 0.3.44-rc.2
This commit is contained in:
16
openrndr-demos/src/demo/resources/shaders/ts-01.tesc
Normal file
16
openrndr-demos/src/demo/resources/shaders/ts-01.tesc
Normal file
@@ -0,0 +1,16 @@
|
||||
#version 430 core
|
||||
|
||||
layout(vertices = 4) out; // 4 points per patch
|
||||
|
||||
|
||||
|
||||
in vec3 va_position[];
|
||||
out vec3 cva_position[];
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user