Sign in
skia
/
skia
/
ed92d84ffd3aeb34c92e25ecb082f089703fc0ec
/
.
/
tests
/
sksl
/
intrinsics
/
Determinant.glsl
blob: 47a168628aaa1e46d93c799aa299514ecfe831c6 [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform mat2 testMatrix2x2
;
uniform vec4 colorGreen
;
uniform vec4 colorRed
;
vec4 main
()
{
return
determinant
(
testMatrix2x2
)
==
-
2.0
?
colorGreen
:
colorRed
;
}