Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'drape/shaders/texturing_vertex_shader.vsh')
-rw-r--r--drape/shaders/texturing_vertex_shader.vsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/drape/shaders/texturing_vertex_shader.vsh b/drape/shaders/texturing_vertex_shader.vsh
index 884aa07476..d633a12540 100644
--- a/drape/shaders/texturing_vertex_shader.vsh
+++ b/drape/shaders/texturing_vertex_shader.vsh
@@ -1,4 +1,4 @@
-attribute vec3 a_position;
+attribute vec4 a_position;
attribute vec2 a_normal;
attribute vec2 a_colorTexCoords;
@@ -12,7 +12,7 @@ void main(void)
{
// Here we intentionally decrease precision of 'pos' calculation
// to eliminate jittering effect in process of billboard reconstruction.
- lowp vec4 pos = vec4(a_position, 1) * modelView;
+ lowp vec4 pos = vec4(a_position.xyz, 1) * modelView;
highp vec4 shiftedPos = vec4(a_normal, 0, 0) + pos;
shiftedPos = shiftedPos * projection;
float w = shiftedPos.w;