Sign in
skia
/
skia
/
1d910efd245866af7dd9285419a179312ba69b47
/
.
/
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
;
}