2021-03-25 21:04:36 +00:00
|
|
|
uniform half4 colorGreen, colorRed;
|
|
|
|
|
2021-01-15 20:34:10 +00:00
|
|
|
half4 helper();
|
|
|
|
|
2021-04-26 19:39:17 +00:00
|
|
|
half4 main() {
|
2021-03-25 21:04:36 +00:00
|
|
|
return helper();
|
2021-01-15 20:34:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
enum class E {
|
|
|
|
kBlack = 0,
|
|
|
|
kGray = 1,
|
|
|
|
kWhite = 2
|
|
|
|
};
|
|
|
|
|
|
|
|
half4 helper() {
|
|
|
|
E temp = E::kGray;
|
|
|
|
switch (temp) {
|
2021-03-25 21:04:36 +00:00
|
|
|
case E::kBlack: return colorRed;
|
|
|
|
case E::kGray: return colorGreen;
|
|
|
|
case E::kWhite: return colorRed;
|
|
|
|
default: return colorRed;
|
2021-01-15 20:34:10 +00:00
|
|
|
}
|
|
|
|
}
|