You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was thinking it would be nice to have the ability to selectively turn renaming off/on for varying vars and uniforms. This is needed to better support the ability to share a common vertex shader with multiple fragment shaders, or vice-versa. Currently, you can do this either by turning off renaming of all uniforms, attribute and varying or you can include multiple shaders in one file. I think there is a third option where you turn off renaming of varying (they tightly couple vertex and uniforms), always rename attributes (no coupling) and only rename uniforms in the fragment or vertex shader that you really want to protect. (normally you only need to protect one or the other). This third option could easily be accomplished if we had an option to selectively control renaming of varying and uniforms. At a minimum only control of varying is needed.
Pete
The text was updated successfully, but these errors were encountered:
@psulat If you are still interested, I created a fork with a small change that prevents renaming of varyings when internal-only renaming parameter is enabled. https://github.com/seanpkent/glslx
Evan,
I was thinking it would be nice to have the ability to selectively turn renaming off/on for varying vars and uniforms. This is needed to better support the ability to share a common vertex shader with multiple fragment shaders, or vice-versa. Currently, you can do this either by turning off renaming of all uniforms, attribute and varying or you can include multiple shaders in one file. I think there is a third option where you turn off renaming of varying (they tightly couple vertex and uniforms), always rename attributes (no coupling) and only rename uniforms in the fragment or vertex shader that you really want to protect. (normally you only need to protect one or the other). This third option could easily be accomplished if we had an option to selectively control renaming of varying and uniforms. At a minimum only control of varying is needed.
Pete
The text was updated successfully, but these errors were encountered: