13 lines
200 B
Plaintext
13 lines
200 B
Plaintext
|
uniform half4 color;
|
||
|
|
||
|
inline bool ifTest(half4 v) {
|
||
|
return color.x >= 0.5;
|
||
|
}
|
||
|
|
||
|
void main() {
|
||
|
if (ifTest(color))
|
||
|
sk_FragColor = half4(1.0);
|
||
|
else
|
||
|
sk_FragColor = half4(0.5);
|
||
|
}
|