mirror of
https://github.com/libretro/RetroArch
synced 2025-01-17 10:18:17 +00:00
cece4e5ae2
Certain early drivers fail to apply swizzle mask.
13 lines
384 B
GLSL
13 lines
384 B
GLSL
#version 310 es
|
|
precision highp float;
|
|
layout(location = 0) in vec2 vTexCoord;
|
|
layout(location = 1) in vec4 vColor;
|
|
layout(location = 0) out vec4 FragColor;
|
|
layout(set = 0, binding = 1) uniform highp sampler2D uTex;
|
|
|
|
void main()
|
|
{
|
|
// Workaround for early drivers which fail to apply swizzle in VkImageView.
|
|
FragColor = vec4(vColor.rgb, vColor.a * texture(uTex, vTexCoord).x);
|
|
}
|