OpenGLTests/assets/shaders/textured.frag

13 lines
211 B
GLSL
Raw Normal View History

2020-09-07 08:44:51 +00:00
#version 460 core
in vec2 vertexUV;
out vec4 fragmentColor;
uniform sampler2D modelTexture;
uniform vec3 lightColor;
2020-09-07 08:44:51 +00:00
void main()
{
fragmentColor = texture(modelTexture, vertexUV) * vec4(lightColor, 1.0f);
2020-09-07 08:44:51 +00:00
}