Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
skia
/
resources
/
sksl
/
shared
/
StaticIf.sksl
blob: 8055de05bc6900dec1f964907b037de3ee2e7eb5 [
file
] [
log
] [
blame
]
uniform half4 colorRed
,
colorGreen
;
half4 main
(
float2 coords
)
{
half4 result
=
colorRed
;
const
float
x
=
5
;
const
float
y
=
10
;
@if
(
x
<
y
)
{
result
=
colorGreen
;
}
return
result
;
}