xash3d-fwgs/ref_vk/shaders/2d.frag
Ivan Avdeev e49591652f add 2d pipelines with blending; menu is drawn almost ok
also switch to non-srgb framebuffer
and remove a bunch of verbose log messages
2021-01-18 13:33:22 -08:00

13 lines
227 B
GLSL

#version 450
layout(set=0,binding=0) uniform sampler2D tex;
layout(location=0) in vec2 vUv;
layout(location=1) in vec4 vColor;
layout(location = 0) out vec4 outColor;
void main() {
outColor = texture(tex, vUv) * vColor;
}