1 2out vec4 sk_FragColor; 3layout (set = 0) uniform 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