#version 150 in vec2 vertTexCoord; in vec4 vertColor; uniform sampler2D colorTexture; uniform float textureWeight; out vec4 fragColor; void main() { fragColor = texture(colorTexture, vertTexCoord) * textureWeight * vertColor + vertColor * (1.0 - textureWeight); }