Hi, I’m having a bit of a problem. I’m wondering if I can somehow choose which subshader from the shader file be used. From what I’ve read the subshader system is for Fallback purposes. If this is not possible, how about choosing which Pass(es) to render, and only that(those)? Thanks
Shader level of detail gives you some control over which subshader is chosen: Unity - Manual: ShaderLab: assigning a LOD value to a SubShader
But I would think that you are trying to do something which should be done in another way. Thus, it would probably be best if you explain the context.
Thanks for the reply. I have a few shaders that I need to swap at certain events. I know that chaning the shader of the material or the material itself would acomplish this, but I was wondering if I could have all my shaders cramed into a single file as different subshaders or passes and choose from there which one I want to use.
As far as I know that’s not possible.