Shader variants
Posted: Wed Oct 10, 2018 3:26 pm
Hi.
I made a nice little custom lit sprite shader with quite a few options.
The default one is standard transparent and I created a duplicate for blending variants where I can customize types of Alpha Blend.
Now, I'd like to somehow merge these two, so that when I update the default shader, it reflects into the other shader.
The only way I can think of now is making the shader a function included in the other shader, but it feels more like a hack than a real solution.
I tried to find more about usage of subshaders in Amplify, but failed to find anything.
Is there a nice and clean solution?
Thanks
I made a nice little custom lit sprite shader with quite a few options.
The default one is standard transparent and I created a duplicate for blending variants where I can customize types of Alpha Blend.
Now, I'd like to somehow merge these two, so that when I update the default shader, it reflects into the other shader.
The only way I can think of now is making the shader a function included in the other shader, but it feels more like a hack than a real solution.
I tried to find more about usage of subshaders in Amplify, but failed to find anything.
Is there a nice and clean solution?
Thanks