1 2 3 4 5 6 7 8 9
uniform sampler2D baseTexture; void main(void) { vec2 uv = gl_TexCoord[0].st; vec4 color = texture2D(baseTexture, uv); color.rgb *= gl_Color.rgb; gl_FragColor = color; }