diff options
Diffstat (limited to 'drape/shaders/text_outlined_gui_vertex_shader.vsh')
-rwxr-xr-x | drape/shaders/text_outlined_gui_vertex_shader.vsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drape/shaders/text_outlined_gui_vertex_shader.vsh b/drape/shaders/text_outlined_gui_vertex_shader.vsh index 45206f029b..6a60995631 100755 --- a/drape/shaders/text_outlined_gui_vertex_shader.vsh +++ b/drape/shaders/text_outlined_gui_vertex_shader.vsh @@ -29,7 +29,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.0) + vec4(Zero, Zero, depthShift, Zero)) * modelView; highp vec4 shiftedPos = vec4(a_normal, Zero, Zero) + pos; gl_Position = shiftedPos * projection; vec2 colorTexCoord = a_colorTexCoord * notOutline + a_outlineColorTexCoord * isOutline; |