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

Commit bb969804 authored by Yein Jo's avatar Yein Jo
Browse files

Add mid layer rain (behind the subject)

Bug: 325090421
Test: m, gradle
Flag: NA
Change-Id: Ia616c7cc5206c3a1fbb420f2e10f1970cad507b0
parent 2ff24ae2
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -139,6 +139,17 @@ vec4 main(float2 fragCoord) {
          uv,
          screenAspectRatio,
          time * 18.,
          /* Grid size = */ vec2(20.0, 2.0),
          intensity);

    color.rgb = mix(color.rgb, highlightColor.rgb, rainVisibility * rain.dropMask);

    // Mid layer
    // Generate rain behind the subject.
    rain = generateRain(
          uv,
          screenAspectRatio,
          time * 21.4,
          /* Grid size = */ vec2(30.0, 4.0),
          intensity);