AlphaMaskFragShader.fsh 226 B

12345678910
  1. uniform mediump sampler2D sTexture;
  2. uniform lowp vec4 FlatColour;
  3. varying mediump vec2 TexCoord;
  4. void main()
  5. {
  6. gl_FragColor = vec4(FlatColour.rgb, FlatColour.a * texture2D(sTexture, TexCoord).a);
  7. }