MaterialX
MaterialX copied to clipboard
GLSL shader generator allows for invalid "__" substring in identifiers
If a shader node has a name with "__" substring within the it's name the GLSL shader generator will generate identifiers with that string in it. This is not allowed so shader compilation will fail. Error is:
error C7528: OpenGL reserves names containing '__'
@kwokcb Is there an example of a node with __? Do we need to place a restriction on node name specification or handle this in shader generation?
A name with __ in the middle of the name fails. I believe __ at the start of the name is okay.
Would be a pretty easy fix to add in some additional logic into the GLSL shader generator, so all inherited
generators pick it up.