uniform sampler2D tex; varying vec4 ambient; void main() { gl_FragColor = ambient * texture2D(tex, gl_TexCoord[0].st); }