Merge "Tweak exposure effect on ImageWallpaper." into sc-dev

This commit is contained in:
TreeHugger Robot
2021-03-31 09:31:23 +00:00
committed by Android (Google) Code Review

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;