John Stiles | 469fb3c | 2021-09-30 12:00:09 -0400 | [diff] [blame^] | 1 | uniform half4 inputVal, expected; |
John Stiles | 33ef30e | 2021-05-11 10:37:56 -0400 | [diff] [blame] | 2 | uniform half4 colorGreen, colorRed; |
| 3 | |
| 4 | half4 main(float2 coords) { |
| 5 | const half4 constVal = half4(1.5707963268, 3.1415926536, 4.7123889804, 6.2831853072); |
John Stiles | 469fb3c | 2021-09-30 12:00:09 -0400 | [diff] [blame^] | 6 | return (degrees(inputVal.x) == expected.x && |
| 7 | degrees(inputVal.xy) == expected.xy && |
| 8 | degrees(inputVal.xyz) == expected.xyz && |
| 9 | degrees(inputVal.xyzw) == expected.xyzw && |
John Stiles | 33ef30e | 2021-05-11 10:37:56 -0400 | [diff] [blame] | 10 | degrees(constVal.x) == expected.x && |
| 11 | degrees(constVal.xy) == expected.xy && |
| 12 | degrees(constVal.xyz) == expected.xyz && |
| 13 | degrees(constVal.xyzw) == expected.xyzw) ? colorGreen : colorRed; |
| 14 | } |