Dairy-Drift/resources/shaders/plane/shader.frag

17 lines
264 B
GLSL
Raw Normal View History

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