blob: 37a8a21913127efae5a04cf89cb98209a5e66675 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#version 450
layout(location = 0) in vec2 fragment_position;
layout(location = 1) in vec4 fragment_colour;
layout(location = 2) in vec2 fragment_uv;
out vec4 colour;
uniform sampler2D texture_sampler;
void main()
{
vec4 texture_color = texture(texture_sampler, fragment_uv);
colour = texture_color;
}
|