Sign in
skia
/
skia
/
97be28c4cc05231fe6e70dc32662c24700e731cc
/
.
/
tests
/
sksl
/
shared
/
Clockwise.glsl
blob: ae0886ef74631de570dceac9a61c384bb9119c1b [
file
] [
log
] [
blame
]
uniform vec2 u_skRTFlip
;
out
vec4 sk_FragColor
;
void
main
()
{
bool
sk_Clockwise
=
gl_FrontFacing
;
if
(
u_skRTFlip
.
y
<
0.0
)
{
sk_Clockwise
=
!
sk_Clockwise
;
}
sk_FragColor
=
vec4
(
float
(
sk_Clockwise
?
1
:
-
1
));
}