Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1861b1c1 authored by Linux Build Service Account's avatar Linux Build Service Account
Browse files

Merge 3278774e on remote branch

Change-Id: I9a287d98c622c3bd142098ce8dba073934010e1b
parents b99a4671 3278774e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -66,7 +66,8 @@ public class FisheyeFilter extends Filter {
            "void main() {\n" +
            "  const float m_pi_2 = 1.570963;\n" +
            "  vec2 coord = v_texcoord - vec2(0.5, 0.5);\n" +
            "  float dist = length(coord * scale);\n" +
            "  highp vec2 scaled_coord = coord * scale;\n" +
            "  float dist = length(scaled_coord);\n" +
            "  float radian = m_pi_2 - atan(alpha * sqrt(radius2 - dist * dist), dist);\n" +
            "  float scalar = radian * factor / dist;\n" +
            "  vec2 new_coord = coord * scalar + vec2(0.5, 0.5);\n" +