uniform float unknownInput; void main() { half value = 0.0; switch (0) { case 0: value = 0.0; if (unknownInput == 2) break; case 1: value = 1.0; } sk_FragColor = value.xxxx; }