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

Commit 24a95a10 authored by ztenghui's avatar ztenghui Committed by Android (Google) Code Review
Browse files

Merge "Finer tessellation can draw better looking shadows for circles." into lmp-dev

parents b55ccdad 25e5a02d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -216,7 +216,7 @@ static void tessellateShadows(

    // tessellate caster outline into a 2d polygon
    Vector<Vertex> casterVertices2d;
    const float casterRefinementThresholdSquared = 20.0f; // TODO: experiment with this value
    const float casterRefinementThresholdSquared = 4.0f;
    PathTessellator::approximatePathOutlineVertices(*casterPerimeter,
            casterRefinementThresholdSquared, casterVertices2d);
    if (!ShadowTessellator::isClockwisePath(*casterPerimeter)) {