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

[V1] Uber.shader is 11.3 mb in the game build #333

andrew-grischenko opened this Issue Oct 15, 2017 · 3 comments


None yet
3 participants

andrew-grischenko commented Oct 15, 2017

I'm using Post-processing stack version v1 to apply "Bloom" effect to my camera.

When I build APK for Android, the largest file in the build is the "Uber.shader" occupying 11.3Mb of the build (33% of my app space). Is it a bug? How can I reduce that monstrous size?

@andrew-grischenko andrew-grischenko changed the title from Uber.shader is 11.3 mb in the game build to [V1] Uber.shader is 11.3 mb in the game build Oct 21, 2017


This comment has been minimized.

andrew-grischenko commented Oct 21, 2017

@Kink3d Do you have any update on this please?


This comment has been minimized.


Chman commented Nov 9, 2017

This is due to the amount of variants in the Uber shader v1. The only way to reduce its size is to comment or remove the shader variants you don't actually use. See this section of the file. For instance if you don't use the bloom dirt texture you can delete BLOOM_LENS_DIRT. Or if you don't need depth of field, you can remove the whole line. Removing what don't use will dramatically reduce the number of variants and thus the final file size.

@Chman Chman closed this Nov 9, 2017


This comment has been minimized.

esalberg100 commented Jun 15, 2018

It is a bug, however I doubt it will be fixed anytime soon.

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