Sign in
skia
/
skia
/
665ae344c8ec402f6f2c7b5962244146f120928c
/
.
/
tests
/
sksl
/
shared
/
UniformMatrixResize.glsl
blob: a96dd177d5292989d35ac913cc9a5a79cd6b9983 [
file
] [
log
] [
blame
]
out
vec4 sk_FragColor
;
uniform mat3 testMatrix3x3
;
uniform vec4 colorGreen
;
uniform vec4 colorRed
;
mat2 resizeMatrix_f22
()
{
return
mat2
(
testMatrix3x3
);
}
vec4 main
()
{
return
resizeMatrix_f22
()
==
mat2
(
1.0
,
2.0
,
4.0
,
5.0
)
?
colorGreen
:
colorRed
;
}