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

Commit b112050d authored by Sherry Zhou's avatar Sherry Zhou Committed by Android (Google) Code Review
Browse files

Merge "Support in_opacity in SIMPLEX_SIMPLE_SHADER" into main

parents dd26f470 30de4e0a
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;
            }
        """