opengl.frag 171 B

12345678910
  1. uniform sampler2D myTexture;
  2. void main (void)
  3. {
  4. vec4 col = texture2D(myTexture, vec2(gl_TexCoord[0]));
  5. col *= gl_Color;
  6. gl_FragColor = col * 4.0;
  7. }