1
0
Fork 0
fgdata/Shaders/Canvas/image.frag
2024-02-09 14:32:24 +01:00

17 lines
298 B
GLSL

#version 410 core
out vec4 fragColor;
in VS_OUT {
vec2 texcoord;
vec4 vertex_color;
} fs_in;
uniform sampler2D tex;
void main()
{
vec4 texel = texture(tex, fs_in.texcoord);
// Modulate by the fill color (stored in the vertex color)
fragColor = texel * fs_in.vertex_color;
}