15 lines
382 B
GLSL
15 lines
382 B
GLSL
#version 460
|
|
|
|
layout(location = 0) in vec4 fragColor;
|
|
layout(location = 1) in vec2 fragTex;
|
|
|
|
layout(location = 0, index = 0) out vec4 outColor;
|
|
layout(location = 0, index = 1) out vec4 outColorMask;
|
|
|
|
layout(set = 1, binding = 0) uniform sampler2D texSampler;
|
|
|
|
void main()
|
|
{
|
|
outColor = fragColor;
|
|
outColorMask = vec4(fragColor.a * texture(texSampler, fragTex).rgb, fragColor.a);
|
|
} |