glslx icon indicating copy to clipboard operation
glslx copied to clipboard

Feature Request: additional renaming control

Open psulat opened this issue 9 years ago • 2 comments

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

psulat avatar Feb 27 '16 16:02 psulat

@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

seanpkent avatar May 03 '18 21:05 seanpkent

@seanpkent Cool! Thanks for letting me know.

psulat avatar May 07 '18 01:05 psulat