opengl.frag 225 B

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