FragShader.fsh 218 B

123456789101112
  1. uniform sampler2D sTexture;
  2. varying mediump vec2 TexCoord;
  3. const lowp vec3 cBaseColor = vec3(0.2, 1.0, 0.7);
  4. void main()
  5. {
  6. gl_FragColor = vec4(cBaseColor * texture2D(sTexture, TexCoord).rgb, 1.0);
  7. }