1 2 3 4 5 6 7 8
uniform sampler2D tex; varying vec4 ambient; void main() { gl_FragColor = ambient * texture2D(tex, gl_TexCoord[0].st); }