Project

General

Profile

« Previous | Next » 

Revision 21304c55

Added by Leszek Koltunski about 7 years ago

Progress with TransferFeedback app - introduce two modes: USEPOINTS 'true' or 'false'.

On Nexus5X, it works with 'true' and 'false'. On Nexus 4, it works with 'true', but returns GL_INVALID_OPERATION with 'false'.

View differences:

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

  
20 20
precision mediump float;
21 21

  
22
#if __VERSION__ != 100
23
out vec4 fragColor;           // The output color
24
#define FRAG_COLOR fragColor
25
#else
26
#define FRAG_COLOR gl_FragColor
27
#endif
22
out vec4 fragColor;
28 23

  
29 24
//////////////////////////////////////////////////////////////////////////////////////////////
30 25

  
31 26
void main()                    		
32 27
  {
33
  FRAG_COLOR = vec4(1.0,1.0,1.0,1.0);
28
  fragColor = vec4(1.0,1.0,1.0,1.0);
34 29
  }

Also available in: Unified diff