xash3d-fwgs/ref/vk/shaders/2d.frag

13 lines
227 B
GLSL
Raw Normal View History

2021-01-13 20:54:34 +01:00
#version 450
layout(set=0,binding=0) uniform sampler2D tex;
layout(location=0) in vec2 vUv;
layout(location=1) in vec4 vColor;
2021-01-13 20:54:34 +01:00
layout(location = 0) out vec4 outColor;
void main() {
outColor = texture(tex, vUv) * vColor;
2021-01-13 20:54:34 +01:00
}