I'd like to have this in my shader:
#if SHADER_API_MOBILE
#pragma surface surf Lambert noforwardadd
#else
#pragma surface surf Lambert
#endif
But this tries to compile both #pragma surface and ignores the second one instead of respecting the #if condition.
Anyone know how to add "noforwardadd" to a shader, but only when it's compiled for mobile platforms?
Thanks!
Allen