2
0

opengl_fragment.glsl 175 B

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