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/text_outlined_vertex_shader.vsh')
-rwxr-xr-xdrape/shaders/text_outlined_vertex_shader.vsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/drape/shaders/text_outlined_vertex_shader.vsh b/drape/shaders/text_outlined_vertex_shader.vsh
index 36649f64ba..977a3de444 100755
--- a/drape/shaders/text_outlined_vertex_shader.vsh
+++ b/drape/shaders/text_outlined_vertex_shader.vsh
@@ -30,7 +30,7 @@ void main()
// Here we intentionally decrease precision of 'pos' calculation
// to eliminate jittering effect in process of billboard reconstruction.
- lowp vec4 pos = (a_position + vec4(Zero, Zero, depthShift, Zero)) * modelView;
+ lowp vec4 pos = (vec4(a_position.xyz, 1) + vec4(Zero, Zero, depthShift, Zero)) * modelView;
highp vec4 shiftedPos = vec4(a_normal, Zero, Zero) + pos;
shiftedPos = shiftedPos * projection;
float w = shiftedPos.w;