- Home /
Is there an easy way of identifying shader keywords in use on a project?
I am aware that hitting the shader keywords limit is a direct result of having too many shaders. But, I would like to know if there is a way to catalog or identify what keywords are being using in a scene so I can decide how and where to trim them out.
I have a sneaking suspicion that maybe one or two shaders I am using may be taking up more than it's fair share of shader keywords, but I have no good way of identifying this problem.
Some are more obvious than others. But with systems like Shaderforge, I have no idea where the shader keywords are for these.
Anyone have any suggestions? Any help is greatly appreciated.
I'm afraid I don't know the answer, but I'm giving you a + 1 for a good question (and one which I'd love to know the answer to myself!) - I'm reasonably capable of keeping my project clean with regards to scripts and models, but my collection of custom shaders is a mess and I'm not quite brave enough to go through deleting them without knowing if something, somewhere, is using them....
No answer here either but it's a good question - one I'd like an answer to as well.
It'd be nice if someone created a simple script to quickly identify and categorize all shaders in use (and not in use) in a scene.
Your answer