Input ports of shader disappear

Steps causing the bug to occur

  1. Create new image filter shader
  2. Add a float port
  3. Right click to add an additional port
  4. First port disappears

Have you found a workaround?

No

Other notes

  • Vuo version: 2.3.2
  • macOS version: macOS 11
  • CPU: x86_64
  • How severely does this bug affect you? It prevents me from completing a specific task with Vuo.

There is a workaround by using the variables in the code before publishing them. It seems that they are auto removed if unused.

3 Likes

Thanks for reporting this bug, @MartinusMagneson. We can reproduce it and will work on fixing it.

1 Like

Too bad, workaround appears not to work with color ports. And looks like trying permanently corrupts the .fs file, from then on:

Regular non-array variable ‘Color’ may not be redeclared (Vertex)  

@jersmi that seems more like there is an already existing variable named Color in the shader code. Could you try renaming the port to to inputColor? I also think that variables shouldn’t start with a capitalized letter, but I’m unsure if that matters for this application.

Hmm, I tried a few combinations, let me try again. Thank you.

I can create color ports just fine with the workaround, it was my error. Thanks again.