diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-09 22:11:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-10 12:56:53 +0300 |
commit | 61e9fc59323157bbd3ea024e816981b975d5b2c8 (patch) | |
tree | aec9ac4d650b2949cde80a65d021ac7ab39a2fc9 /data | |
parent | 5fe5d3de3c570734d824afac4992a0d00386dbea (diff) | |
download | manaplus-61e9fc59323157bbd3ea024e816981b975d5b2c8.tar.gz manaplus-61e9fc59323157bbd3ea024e816981b975d5b2c8.tar.bz2 manaplus-61e9fc59323157bbd3ea024e816981b975d5b2c8.tar.xz manaplus-61e9fc59323157bbd3ea024e816981b975d5b2c8.zip |
Add basic texture drawing in modernopengl.
Diffstat (limited to 'data')
-rw-r--r-- | data/graphics/shaders/texture_vertex.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/data/graphics/shaders/texture_vertex.glsl b/data/graphics/shaders/texture_vertex.glsl index e6c1bf359..383181cd9 100644 --- a/data/graphics/shaders/texture_vertex.glsl +++ b/data/graphics/shaders/texture_vertex.glsl @@ -1,10 +1,10 @@ #version 150 core -in vec2 simplePos; +in vec2 texturePos; in vec2 texcoord; out vec2 Texcoord; uniform vec2 screen; void main() { Texcoord = texcoord; - gl_Position = vec4(simplePos.x / screen.x - 1, 1 - simplePos.y / screen.y, 0.0, 1.0); + gl_Position = vec4(texturePos.x / screen.x - 1, 1 - texturePos.y / screen.y, 0.0, 1.0); } |