GenPlex
This was posted as a 088 asset, but I wanted it to work in 099.
A few things needed to change in the Geometry Shader.
First, gl_VerticesIn has been removed in 099 so the following change:
gl_VerticesIn had to be changed to gl_in.length(),
Secondly, lines for layout need to be added to the shader as the old 088 way of doing it with parameters is no longer.
layout(lines) in;
layout(line_strip, max_vertices = 2) out;
This is more portable 'proper' GLSL code now, less TD specific. ALso now you can drop the GLSL version down to 3.30 so all versions and GPUs that TouchDesigner runs on should be able to run it.
I attached an updated file if asterix wants to update the asset.
A few things needed to change in the Geometry Shader.
First, gl_VerticesIn has been removed in 099 so the following change:
gl_VerticesIn had to be changed to gl_in.length(),
Secondly, lines for layout need to be added to the shader as the old 088 way of doing it with parameters is no longer.
layout(lines) in;
layout(line_strip, max_vertices = 2) out;
This is more portable 'proper' GLSL code now, less TD specific. ALso now you can drop the GLSL version down to 3.30 so all versions and GPUs that TouchDesigner runs on should be able to run it.
I attached an updated file if asterix wants to update the asset.
- Attachments
-
- GenPlex.zip
- (3.17 KiB) Downloaded 1255 times