renderer-tutorial/res/shaders/frag.shader

15 lines
216 B
Plaintext
Raw Permalink Normal View History

2020-05-17 08:59:15 +00:00
#version 330 core
2020-05-22 14:16:06 +00:00
layout(location = 0) out vec4 color;
in vec2 v_texCoord;
2020-05-17 08:59:15 +00:00
2020-05-17 11:21:06 +00:00
uniform vec4 u_color;
2020-05-22 14:16:06 +00:00
uniform sampler2D u_texture;
2020-05-17 11:21:06 +00:00
2020-05-17 08:59:15 +00:00
void main()
{
2020-05-22 14:16:06 +00:00
vec4 texColor = texture(u_texture, v_texCoord);
color = texColor;
2020-05-17 08:59:15 +00:00
}