#version 330 core uniform sampler2D texture; varying vec2 vTexCoord; varying vec3 color; void main() { gl_FragColor = vec4(color.x,color.y,color.z,texture2D(texture, vTexCoord).w); }