xash3d-fwgs/ref_vk/shaders/2d.vert

15 lines
266 B
GLSL
Raw Normal View History

2021-01-13 20:54:34 +01:00
#version 450
layout(location=0) in vec2 aPos;
layout(location=1) in vec2 aUv;
layout(location=2) in vec4 aColor;
2021-01-13 20:54:34 +01:00
layout(location=0) out vec2 vUv;
layout(location=1) out vec4 vColor;
2021-01-13 20:54:34 +01:00
void main() {
gl_Position = vec4(aPos, 0., 1.);
vUv = aUv;
vColor = aColor;
2021-01-13 20:54:34 +01:00
}