There is a workaround by using the variables in the code before publishing them. It seems that they are auto removed if unused.
Thanks for reporting this bug, @MartinusMagneson. We can reproduce it and will work on fixing it.
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.