Sign in
skia
/
skia
/
1d910efd245866af7dd9285419a179312ba69b47
/
.
/
resources
/
sksl
/
shared
/
UnaryPositiveNegative.sksl
blob: 3f122c0804b77fb73825f542eccc8cbea065d9cd [
file
] [
log
] [
blame
]
uniform half4 colorWhite
,
colorGreen
,
colorRed
;
half4 main
(
float2 coords
)
{
half2 x
=
colorWhite
.
rg
;
x
=
+
x
;
x
=
-
x
;
return
x
==
half2
(-
1
)
?
colorGreen
:
colorRed
;
}