Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve multiple macro files before renaming ? or prevent renaming or macros ? #109

Open
Samsy opened this issue Mar 4, 2018 · 2 comments

Comments

@Samsy
Copy link

Samsy commented Mar 4, 2018

Hello there !
Thank you very much for this tool, I've been using it for years, it is so useful.

I wonder if is there a way to resolve multiples macro function files before renaming them ?
Or is there a way to prevent the renaming of macros function ?
If your glsl files contains functions that are dependent on each other, then declared functions are undefined because of the renaming !

Many thanks

@mattdesl
Copy link
Contributor

mattdesl commented Mar 4, 2018

Can you provide an example / test case?

I also wish functions were renamed later / not at all (where possible).

@Samsy
Copy link
Author

Samsy commented Mar 6, 2018

Hey Matt,
That was simply to make a uber shader three-js like using hooks on an existing shader.

1 ) resolving uniforms and function before the void main function.
2 ) Calling those functions resolved in the first part in the void main function

Those function are unusable because they are renamed in the 1st part !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants