src/scene/glsl/source/screen_effect.vs
raw| 1 | /* Simple GLSL shader to apply 2D screen quad. |
| 2 | Must be suitable also for GLES20, so don't use any deprecated gl_Xxx |
| 3 | variables. */ |
| 4 | |
| 5 | attribute vec2 vertex; // must be already in clip coordinates, -1..1 |
| 6 | attribute vec2 tex_coord; |
| 7 | varying vec2 screenf_01_position; |
| 8 | |
| 9 | void main(void) |
| 10 | { |
| 11 | gl_Position = vec4(vertex, 0.0, 1.0); |
| 12 | screenf_01_position = tex_coord; |
| 13 | } |