2023-03-31 11:27:31 +02:00
|
|
|
#version 330 core
|
|
|
|
|
|
|
|
in vec2 v_texcoord;
|
|
|
|
|
|
|
|
out vec4 frag_color;
|
|
|
|
|
|
|
|
uniform sampler2D tex;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2023-04-05 11:14:00 +02:00
|
|
|
// Sample the texture using the texture coordinates
|
|
|
|
vec4 tex_color = texture(tex, v_texcoord);
|
2023-03-31 11:27:31 +02:00
|
|
|
|
2023-04-05 11:14:00 +02:00
|
|
|
// Output the final color
|
2023-03-31 11:27:31 +02:00
|
|
|
frag_color = tex_color;
|
|
|
|
}
|