From 8e1fc2522ee907da5fc3e65691990fd608539a72 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 11 Jun 2014 23:44:25 +0300 Subject: Use only one shader program for all drawing. --- data/graphics/shaders/simple_vertex.glsl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'data/graphics/shaders/simple_vertex.glsl') diff --git a/data/graphics/shaders/simple_vertex.glsl b/data/graphics/shaders/simple_vertex.glsl index 3be44c6d8..a10a39b13 100644 --- a/data/graphics/shaders/simple_vertex.glsl +++ b/data/graphics/shaders/simple_vertex.glsl @@ -1,7 +1,9 @@ #version 150 core -in vec2 position; +in vec4 position; +out vec2 Texcoord; uniform vec2 screen; void main() { + 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-70-g09d2