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

Commit 30de4e0a authored by Sherry Zhou's avatar Sherry Zhou
Browse files

Support in_opacity in SIMPLEX_SIMPLE_SHADER

Bug: 382751506
Test: manual test
Flag: EXEMPT shader change

Change-Id: Id1a90034f6cfd688e38dd101eebe5444a72c9851
parent 3df32c4e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -79,7 +79,8 @@ class TurbulenceNoiseShader(val baseType: Type = Type.SIMPLEX_NOISE) :
                // Compute turbulence effect with the uv distorted with simplex noise.
                vec3 noisePos = vec3(uv + in_noiseMove.xy, in_noiseMove.z) * in_gridNum;
                float mixFactor = simplex3d(noisePos) * 0.5 + 0.5;
                return mix(in_color, in_screenColor, mixFactor);
                vec4 mixedColor = mix(in_screenColor * in_screenColor.a, in_color * in_color.a, mixFactor);
                return mixedColor * in_opacity;
            }
        """