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

Commit 8bc659eb authored by Sherry Zhou's avatar Sherry Zhou
Browse files

Fix rain weather effect is not showing up after select

Bug: 418198414
Flag: EXEMPT, Magic Portrait only
Test: manual test selecting rain effects in Magic Portrait editor

Change-Id: I79ec79e4b7164bfb5c06b18c6aa74daab9d62c41
parent 38733e8c
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()
    }