2020-09-14 21:30:13 +00:00
|
|
|
|
2020-09-15 20:09:11 +00:00
|
|
|
out vec4 sk_FragColor;
|
2020-09-25 17:35:58 +00:00
|
|
|
layout (set = 0) uniform mat4 colorXform;
|
2020-12-04 15:51:21 +00:00
|
|
|
layout (binding = 0) uniform sampler2D s;
|
2020-09-14 21:30:13 +00:00
|
|
|
void main() {
|
2020-09-15 20:09:11 +00:00
|
|
|
vec4 tmpColor;
|
2021-03-04 15:19:48 +00:00
|
|
|
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);
|
2020-09-14 21:30:13 +00:00
|
|
|
}
|