s3db: disable postprocess mode

- seems old mali having issues with dependent texture reads..
- add bypass shader for testing
This commit is contained in:
Hannes Janetzek
2014-05-04 22:25:31 +02:00
parent e7a015a1d7
commit a8662d4dce
4 changed files with 89 additions and 25 deletions

View File

@@ -0,0 +1,28 @@
#ifdef GLES
precision highp float;
#endif
uniform vec2 u_pixel;
attribute vec4 a_pos;
varying vec2 tex_pos;
void main()
{
gl_Position = a_pos;
tex_pos = (a_pos.xy + 1.0) * 0.5;
}
$$
#ifdef GLES
precision highp float;
#endif
uniform sampler2D u_texColor;
uniform vec2 u_pixel;
varying vec2 tex_pos;
void main(){
gl_FragColor = texture2D(u_texColor, tex_pos) * 0.8;
}