From ef58f66331d6dae6942da4781be2c7954f364f94 Mon Sep 17 00:00:00 2001 From: Josh Tsuji Date: Tue, 30 Mar 2021 14:29:47 -0400 Subject: [PATCH] Tweak exposure effect on ImageWallpaper. This changes the exposure values so that the wallpaper is more visible during the beginning of the exposure effect, so that the shape of the reveal scrim from the power button/lift is more visible initially. Test: manual, looks good Bug: 181020504 Change-Id: I77216550d9507e0bdfa38976329170b40345ffa1 --- packages/SystemUI/res/raw/image_wallpaper_fragment_shader.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/res/raw/image_wallpaper_fragment_shader.glsl b/packages/SystemUI/res/raw/image_wallpaper_fragment_shader.glsl index e9c838999dda6..7aca9f8440fc5 100644 --- a/packages/SystemUI/res/raw/image_wallpaper_fragment_shader.glsl +++ b/packages/SystemUI/res/raw/image_wallpaper_fragment_shader.glsl @@ -46,7 +46,7 @@ void main() { // Transform it using the S curve created by the smoothstep. This will increase the contrast. lum = smoothstep(0., 1., lum) + 0.001; - lum = relativeExposureCompensation(lum, mix(-15., 10., uExposure)); + lum = relativeExposureCompensation(lum, mix(-5., 10., uExposure)); lum = mix(clamp(lum, 0.0, 1.0), 1.0, normalizedRange(uExposure, 0.55, 1.0)); color.rgb *= lum;