Merge "Correctly fade sparkles in" into sc-dev

This commit is contained in:
Lucas Dupin 2021-04-08 23:28:56 +00:00 committed by Android (Google) Code Review
commit 990702017c

View File

@ -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"