Recently I’ve been toying around with shaders again and noticed that in quite a lot of cases I have to copy paste stock shaders. Let’s say for example, a low poly water shader. It needs a custom vertex shader, but a stock PBR frag shader would do just fine. Now what I would probably end up doing is copy pasting PBRLighting.frag and throwing out the parts I don’t need, but that feels like a lot of work for just trying to reuse a shader.
Is there a way to properly reuse stock frag/vert shaders?