HDRP+ TMpro + Postprocess - Shader Global Keyword limit

Hi,

First thanks for your time, I search and research this topic, try a lot of solutions and spent a lot of hours, I know the need of using local keywords (I can’t in some cases are external really complex assets), but I reach a point where I need some help.

I have a problem with the global keywords in the shaders. I have been checking the project (I have shader control, and some forum tools also), this tools reports that I use around 60 keywords. The problem is that I reached the 256 keyword limit, but what I’m afraid is that most of them are unity built-in keywords,

I’m using HDRP (7.1.6, Including layered lit) + TextMeshPro (TMpro) + PostprocessV2 (PPv2), I strongly believe that I’m using less than 60 global keywords, so the total number of global keywords that this "unity built-in combo " are using is around ~200 keywords it means that I have 19% of the total keywords available and that is really low, moreover if I want to use assets from the store like CTS or vegetation studio.

Also in the console error appears used keywords that I don’t use anymore like some AURA keywords (but they are just a few…)

I have Unity (2019.3f1) and all the packages updated, restarted unity and test a lot of things.

I’m doing something wrong?, this is normal?, what I should do?

How many Keywords uses HDRP?
How many Keywords uses TMpro?
How many Keywords uses PPv2?

I would appreciate any help,

Many thanks.

Did you know, that you don’t need PPV2 because HDRP have it’s own postprocess? PPv2 don’t even work inside HDRP. Just asking.

1 Like

ouch!

As the moment I read you is crystal clear, many thanks!!

In the end I think I knew that the HDRP uses its own PP but somehow my brain think it was the same PP from the package manager not a fully independent one… thanks for point it out!! , for me solve the problem!

I think that a clear notation in the HDRP documentation (something like, remember to get rid of the PPv1 and PPv2) would be much appreciate :slight_smile: