aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/data/3d.vert
blob: aaee1a5c20d4116d7522503379735244fad899e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#version 450

// DescriptorSet 0 = Matrices
layout (push_constant) uniform PushConsts {
    mat4 vp;
} push;

layout (location = 0) in vec3 position;
layout (location = 1) in int tex;
layout (location = 2) in vec2 uv;

out gl_PerVertex {
	vec4 gl_Position;
};
layout (location = 1) out vec2 frag_uv;
layout (location = 2) out flat int frag_tex;

void main()
{
	gl_Position = push.vp * vec4(position, 1.0);
	frag_uv = uv;
	frag_tex = tex;
}