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

17 lines
264 B
GLSL

#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);
// Output the final color
frag_color = tex_color;
}