Merge "Tweak exposure effect on ImageWallpaper." into sc-dev am: 91aea8ebc8

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14038640

Change-Id: I592b592b838fa17891945150048abb004092c040
This commit is contained in:
TreeHugger Robot
2021-03-31 10:02:37 +00:00
committed by Automerger Merge Worker

View File

@@ -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;