From e8a8db1e71d90eda2f76b6c34afc8c1ec5cd2b8b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Jun 2014 12:44:57 +0300 Subject: In modernopengl for textures use one attribute (before was two) --- data/graphics/shaders/texture_vertex.glsl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'data') 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); } -- cgit v1.2.3-60-g2f50