#version 330 core uniform vec4 iColor = vec4(1, 1, 1, 1); uniform sampler2D sampler; in vec2 texCoords; out vec4 color; void main() { color = texture(sampler, texCoords) * iColor; }