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/path_symbol_vertex_shader.vsh')
-rw-r--r--drape/shaders/path_symbol_vertex_shader.vsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/drape/shaders/path_symbol_vertex_shader.vsh b/drape/shaders/path_symbol_vertex_shader.vsh
index ee0709bd23..38c6b7791a 100644
--- a/drape/shaders/path_symbol_vertex_shader.vsh
+++ b/drape/shaders/path_symbol_vertex_shader.vsh
@@ -1,4 +1,4 @@
-attribute vec3 a_position;
+attribute vec4 a_position;
attribute vec2 a_normal;
attribute vec2 a_colorTexCoords;
@@ -10,7 +10,7 @@ varying vec2 v_colorTexCoords;
void main(void)
{
- lowp vec4 pos = vec4(a_position, 1) * modelView;
+ lowp vec4 pos = vec4(a_position.xyz, 1) * modelView;
highp vec4 norm = vec4(a_normal, 0, 0) * modelView;
highp vec4 shiftedPos = norm + pos;
shiftedPos = shiftedPos * projection;