Platform specific shader callback?

Hi there,

Just a brief question, is there a way/workaround to set a shader fallback based on the current build platform? Like, using a different shader if the game platform is a very weak game console.

There are the #pragma only_renderers or exclude_renderers you can use so that a given pass is only used for a given platform. There’s a list here, though it seems to be missing the switch platform which also works. Unity - Manual: HLSL in Unity

1 Like

Thanks a lot!