GLSL -> fallback to shaderlab/fixed function for other platforms

Hi,

How do I design it so that the fallback kicks in on windows? just adding another pass for it to fall back to still results in it trying to run GLSL on windows instead. Any tips? Basically, I can use any old shader for desktop (ie unity ones) but wish to use optimised GLSL for mobile within the same shader for a nice workflow.

You don’t add another pass. You add another SubShader.

Hi,
As Jessy said, also here is another approach

Thanks fellas, much appreciated.