Project

General

Profile

« Previous | Next » 

Revision 56c6ca24

Added by Leszek Koltunski almost 6 years ago

OIT: lots of progress on all fronts. Still a few bugs to solve though!

View differences:

src/main/res/raw/blit_fragment_shader.glsl
19 19

  
20 20
precision lowp float;
21 21

  
22
#if __VERSION__ != 100
23 22
out vec4 fragColor;           // The output color
24 23
in vec2 v_TexCoordinate;      // Interpolated texture coordinate per fragment.
25
#define TEXTURE texture
26
#define FRAG_COLOR fragColor
27
#else
28
varying vec2 v_TexCoordinate; // Interpolated texture coordinate per fragment.
29
#define TEXTURE texture2D
30
#define FRAG_COLOR gl_FragColor
31
#endif
32

  
33 24
uniform sampler2D u_Texture;  // The input texture.
34 25

  
35 26
//////////////////////////////////////////////////////////////////////////////////////////////
36 27

  
37 28
void main()                    		
38 29
  {
39
  FRAG_COLOR = TEXTURE(u_Texture,v_TexCoordinate);
30
  fragColor = texture(u_Texture,v_TexCoordinate);
40 31
  }

Also available in: Unified diff