#version 100 precision mediump float; varying vec2 fragTexCoord; // Input uniform values uniform sampler2D texture0; uniform vec4 colDiffuse; void main() { // Texel color fetching from texture sampler vec4 texelColor = texture2D(texture0, fragTexCoord); gl_FragColor = texelColor*colDiffuse; }