You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
406 B
24 lines
406 B
uniform half4 colorGreen, colorRed;
|
|
|
|
half4 helper();
|
|
|
|
half4 main(float2 coords) {
|
|
return helper();
|
|
}
|
|
|
|
enum class E {
|
|
kBlack = 0,
|
|
kGray = 1,
|
|
kWhite = 2
|
|
};
|
|
|
|
half4 helper() {
|
|
E temp = E::kGray;
|
|
switch (temp) {
|
|
case E::kBlack: return colorRed;
|
|
case E::kGray: return colorGreen;
|
|
case E::kWhite: return colorRed;
|
|
default: return colorRed;
|
|
}
|
|
}
|