I have a custom vert/frag shader with various shader features which I can turn on and off, lets call this “shader A”.
I want to write another shader (“shader B”) which uses a pass from shader A, but with one of the shader features turned on.
I could write a custom editor for shader B that makes sure this feature is always turned on, but this seems annoying since I ALWAYS want this keyword turned.
I feel like I should be able to do something like:
#define SHADER_FEATURE
…
UsePass “ShaderA/PassIWantToUse”
but it never seems to work.