diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-11 12:44:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-11 12:44:57 +0300 |
commit | e8a8db1e71d90eda2f76b6c34afc8c1ec5cd2b8b (patch) | |
tree | 8877badb3d70f78adf16bdd57c8bd3217877b783 /data/graphics/shaders/texture_vertex.glsl | |
parent | 16aee7e951a63492548380517eb550be93ce4369 (diff) | |
download | plus-e8a8db1e71d90eda2f76b6c34afc8c1ec5cd2b8b.tar.gz plus-e8a8db1e71d90eda2f76b6c34afc8c1ec5cd2b8b.tar.bz2 plus-e8a8db1e71d90eda2f76b6c34afc8c1ec5cd2b8b.tar.xz plus-e8a8db1e71d90eda2f76b6c34afc8c1ec5cd2b8b.zip |
In modernopengl for textures use one attribute (before was two)
Diffstat (limited to 'data/graphics/shaders/texture_vertex.glsl')
-rw-r--r-- | data/graphics/shaders/texture_vertex.glsl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/data/graphics/shaders/texture_vertex.glsl b/data/graphics/shaders/texture_vertex.glsl index c86d9211f..a10a39b13 100644 --- a/data/graphics/shaders/texture_vertex.glsl +++ b/data/graphics/shaders/texture_vertex.glsl @@ -1,10 +1,9 @@ #version 150 core -in vec2 position; -in vec2 texcoord; +in vec4 position; out vec2 Texcoord; uniform vec2 screen; void main() { - Texcoord = texcoord; + Texcoord = vec2(position.z, position.w); gl_Position = vec4(position.x / screen.x - 1, 1 - position.y / screen.y, 0.0, 1.0); } |