xref: /aosp_15_r20/external/skia/tests/sksl/shared/ComplexDelete.glsl (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1
2out vec4 sk_FragColor;
3uniform mat4 colorXform;
4layout (binding = 0) uniform sampler2D s;
5void main() {
6    vec4 tmpColor;
7    sk_FragColor = (tmpColor = texture(s, vec2(1.0)), colorXform != mat4(1.0) ? vec4(clamp((colorXform * vec4(tmpColor.xyz, 1.0)).xyz, 0.0, tmpColor.w), tmpColor.w) : tmpColor);
8}
9