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

Export varying in the renaming table #24

Open
zebontheweb opened this issue Oct 31, 2024 · 1 comment
Open

Export varying in the renaming table #24

zebontheweb opened this issue Oct 31, 2024 · 1 comment

Comments

@zebontheweb
Copy link

Hi, we love your project, but it does not work out of the box if you minify vertex shader and fragment shader independantly because varying are renamed differently.

Would it be possible to export the renaming of varying in the output ?

Thanks

@zebontheweb
Copy link
Author

My proposed solution is not ideal as is. to be unbreakable, the ability to input an existing renaming table is needed as well.

var VSoptimizedSource = JSON.parse(GLSLX.compile(vertexShaderSource, options).output);
var FSoptimizedSource = JSON.parse(GLSLX.compile(fragmentShaderSource, options, VSoptimizedSource.renaming).output);

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

1 participant