red_f.glsl 244 B

123456789
  1. uniform sampler2D my_color_texture;
  2. void main(void)
  3. {
  4. vec4 add_color = vec4(0.5, 0.0, 0.0, 1.0);
  5. vec4 tex_color = texture2D(my_color_texture, gl_TexCoord[0].xy) * (gl_Color + add_color);
  6. gl_FragColor = vec4(tex_color.xyz, 0.5);
  7. }