Skip to content

Feature Request: additional renaming control #6

Open
@psulat

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions