Discuss assets which are currently available for download on ChopChopChop
Post Reply
Posts: 55
Joined: Sat Jul 08, 2017 2:19 pm

Wed Feb 07, 2018 3:02 am

Generates lines between points within the minimum distance inside a geometry shader for a relatively cheap plexus effect.

Posts: 8
Joined: Wed Feb 07, 2018 2:20 pm

Tue Feb 13, 2018 6:36 pm

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.
(3.17 KiB) Downloaded 1219 times

Post Reply