Hi, I just have a simple question. Do fallback shaders only get to run if the GPU doesn’t support shader model 3 (if the main shader specified it that), or they get run if for any reason the GPU cannot run the main shader even if theoretically it could?Thanks
Fallback shaders get to run for many reasons, including many situations where the main shader could run on the GPU.
Thanks for the reply, but I’d like to know wether the reasons for why the fallback shaders get used are strictly related to the GPU not supporting the shader model.Thanks
Yes thats the basic idea.
No. As I said, there are many possible reasons, the GPU not supporting the shader model is just one of them. For example, if you specify in the Unity setting to use the vertex-lit rendering path, a shader for the forward rendering path wouldn’t work and Unity uses the fallback shader if there is no shader for the vertex-lit rendering path. In this case it doesn’t matter at all whether the GPU supports the forward-rendering shader or not.
But maybe I’m just not getting the question.