opengl_fragment.glsl 237 B

123456789101112
  1. uniform sampler2D baseTexture;
  2. varying lowp vec4 varColor;
  3. varying mediump vec2 varTexCoord;
  4. void main(void)
  5. {
  6. vec2 uv = varTexCoord.st;
  7. vec4 color = texture2D(baseTexture, uv);
  8. color.rgb *= varColor.rgb;
  9. gl_FragData[0] = color;
  10. }