Project

General

Profile

« Previous | Next » 

Revision 9a3607b3

Added by Leszek Koltunski over 5 years ago

Fix the preprocess shader. This makes the 'Postprocess Tree' app look good again.

View differences:

src/main/res/raw/preprocess_fragment_shader.glsl
29 29
void main()
30 30
  {
31 31
  vec4 color = texture(u_Texture,v_TexCoordinate);
32

  
33
  if( color.a != 0.0 )
34
    {
35
    fragColor = u_Color;
36
    }
37
  else
38
    {
39
    discard;
40
    }
32
  fragColor  = vec4(u_Color.rgb, sign(color.a)*u_Color.a);
41 33
  }

Also available in: Unified diff