John Stiles | 639e812 | 2021-05-24 10:52:23 -0400 | [diff] [blame] | 1 | uniform float unknownInput; |
2 | |||||
John Stiles | bb1505f | 2021-02-12 09:17:53 -0500 | [diff] [blame] | 3 | half4 main() { |
John Stiles | 639e812 | 2021-05-24 10:52:23 -0400 | [diff] [blame] | 4 | @switch (int(unknownInput)) { |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 5 | case 1: |
John Stiles | bb1505f | 2021-02-12 09:17:53 -0500 | [diff] [blame] | 6 | return half4(1); |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 7 | default: |
John Stiles | bb1505f | 2021-02-12 09:17:53 -0500 | [diff] [blame] | 8 | return half4(0); |
John Stiles | 6798e5d | 2020-09-17 18:20:26 -0400 | [diff] [blame] | 9 | } |
10 | } |