blob: 8f29a9b9a0fe54cfd0684474b09f4738a3f69d7f [file] [log] [blame]
/*#pragma settings RewriteSwitchStatements*/
uniform half4 colorGreen, colorRed;
half4 main(float2 coords) {
// Basic switch test.
half4 color;
switch (int(colorGreen.g)) {
case 0:
color = colorRed;
break;
case 1:
color = colorGreen;
break;
default:
color = colorRed;
break;
}
return color;
}