summaryrefslogtreecommitdiff
path: root/shader.vert
blob: 7535193eb1b90b4cf858d8f5896976bfd8cf326e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#version 450

layout(binding = 0) uniform UniformBufferObject {
	mat4 model;
	mat4 view;
	mat4 proj;
} ubo;

layout(location = 0) in vec3 in_position;
layout(location = 1) in vec3 in_color;
layout(location = 2) in vec2 in_text_coords;

layout(location = 0) out vec3 frag_color;
layout(location = 1) out vec2 frag_text_coords;

void main() {
	gl_Position = ubo.proj * ubo.view * ubo.model * vec4(in_position, 1.0);
	frag_color = in_color;
	frag_text_coords = in_text_coords;
}