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

Commit b2e37616 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Correctly fade sparkles in

The ring that masks sparkles was suddenly appearing after a few frames,
causing the sparkles to show up, instead of fade in.

Fixes: 184594674
Test: visual
Change-Id: Id88c26352379e689663808fa8c70834b7ea840b5
parent 9759067e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -71,7 +71,8 @@ final class RippleShader extends RuntimeShader {
            + "  float thickness = 0.3 * radius;\n"
            + "  float currentRadius = radius * progress;\n"
            + "  float circle_outer = softCircle(uv, xy, currentRadius + thickness, blur);\n"
            + "  float circle_inner = softCircle(uv, xy, currentRadius - thickness, blur);\n"
            + "  float circle_inner = softCircle(uv, xy, max(currentRadius - thickness, 0.), "
            + "    blur);\n"
            + "  return saturate(circle_outer - circle_inner);\n"
            + "}\n"
            + "float subProgress(float start, float end, float progress) {\n"