/*#pragma settings RewriteSwitchStatements*/ uniform half4 colorGreen, colorRed; half4 main(float2 coords) { switch (int(colorGreen.g)) { default: return colorGreen; } }