Fix T80129: Cycles shadow catcher viewport error with exposure other than 1

This commit is contained in:
Brecht Van Lommel 2020-08-26 19:05:20 +02:00
parent bd678918ae
commit 0498feb0df
Notes: blender-bot 2023-02-14 11:21:43 +01:00
Referenced by issue #80129, Cycles - Shadow catcher error in viewport rendering when Exposure value is different than 1.00
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ ccl_device float4 film_get_pass_result(KernelGlobals *kg,
if (kernel_data.film.use_display_exposure) {
float exposure = kernel_data.film.exposure;
pass_result *= make_float4(exposure, exposure, exposure, alpha);
pass_result *= make_float4(exposure, exposure, exposure, 1.0f);
}
}
else if (display_pass_components == 1) {