learn-opengl/14-refactor/shaders/4.2.texture.fs

11 lines
146 B
GLSL

#version 330 core
out vec4 FragColor;
in vec2 TexCoord;
uniform sampler2D texture1;
void main()
{
FragColor = texture(texture1, TexCoord);
}