12 lines
179 B
GLSL
12 lines
179 B
GLSL
#version 330 core
|
|
in vec2 v_texCoord;
|
|
in vec4 v_color;
|
|
|
|
uniform sampler2D u_texture;
|
|
|
|
out vec4 FragColor;
|
|
|
|
void main() {
|
|
FragColor = texture(u_texture, v_texCoord) * v_color;
|
|
}
|