Revision 94f6d472
Added by Leszek Koltunski about 7 years ago
src/main/res/raw/test_vertex_shader.glsl | ||
---|---|---|
19 | 19 |
|
20 | 20 |
precision lowp float; |
21 | 21 |
|
22 |
#if __VERSION__ != 100 |
|
23 |
in vec2 a_Position; // Per-vertex position information we will pass in. |
|
24 |
#else |
|
25 |
attribute vec2 a_Position; // Per-vertex position information we will pass in. |
|
26 |
#endif |
|
27 |
|
|
22 | 28 |
uniform vec2 u_objD; // object width X object height. |
23 | 29 |
uniform mat4 u_MVPMatrix; // the combined model/view/projection matrix. |
24 |
in vec2 a_Position; // Per-vertex position information we will pass in. |
|
25 | 30 |
|
26 | 31 |
////////////////////////////////////////////////////////////////////////////////////////////// |
27 | 32 |
|
Also available in: Unified diff
Make it more flexible; now it can run almost all apps on OpenGL 2.0 contexts; OpenGL 3.0 ( with GLSL 3.00) required for POSTPROCESSING.