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

Commit 76e6046f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix rain weather effect is not showing up after select" into main

parents bc88c9f3 8bc659eb
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -118,14 +118,10 @@ class RainEffect(
        get() = rainConfig.colorGradingIntensity

    override fun updateTextureUniforms() {
        val foregroundBuffer =
            BitmapShader(super.foreground, Shader.TileMode.MIRROR, Shader.TileMode.MIRROR)
        rainConfig.rainShowerShader.setInputBuffer("foreground", foregroundBuffer)
        rainConfig.outlineShader.setInputBuffer("texture", foregroundBuffer)

        rainConfig.rainShowerShader.setInputBuffer(
            "background",
            BitmapShader(super.background, Shader.TileMode.MIRROR, Shader.TileMode.MIRROR),
        super.updateTextureUniforms()
        rainConfig.outlineShader.setInputBuffer(
            "texture",
            BitmapShader(super.foreground, Shader.TileMode.MIRROR, Shader.TileMode.MIRROR),
        )
        createOutlineBuffer()
    }