Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
shared
/
TernaryExpression.glsl
blob: c88bdcce1cc619660cc2b022fb5f127d24c90d09 [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform vec4 colorGreen
;
uniform vec4 colorRed
;
vec4 main
()
{
bool
ok
=
true
;
ok
=
ok
&&
(
colorGreen
.
y
==
1.0
?
true
:
false
);
ok
=
ok
&&
(
colorGreen
.
x
==
1.0
?
false
:
true
);
return
ok
?
colorGreen
:
colorRed
;
}