diff --git a/drape/shaders/circle_shader.fsh b/drape/shaders/circle_shader.fsh index 9571d23325..72d702c683 100644 --- a/drape/shaders/circle_shader.fsh +++ b/drape/shaders/circle_shader.fsh @@ -7,7 +7,7 @@ varying vec3 v_radius; void main(void) { vec4 finalColor = texture2D(u_colorTex, v_colorTexCoords); - float stepValue = step(pow(v_radius.z, 2.0), pow(v_radius.x, 2.0) + pow(v_radius.y, 2.0)); + float stepValue = step(v_radius.z * v_radius.z, v_radius.x * v_radius.x + v_radius.y * v_radius.y); finalColor.a = finalColor.a * u_opacity * (1.0 - stepValue); gl_FragColor = finalColor; }