Fix T81761: EEVEE enabled AO pass affects render result
This was a regression introduced on 68651534c2
.
This commit is contained in:
parent
7447eb7e74
commit
d48d8b3456
Notes:
blender-bot
2023-02-13 20:50:58 +01:00
Referenced by issue #81761, Eevee enabled AO pass affects render result (even though AO is disabled in scene settings)
|
@ -64,7 +64,9 @@ int EEVEE_occlusion_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata)
|
|||
common_data->ao_factor = scene_eval->eevee.gtao_factor;
|
||||
common_data->ao_quality = 1.0f - scene_eval->eevee.gtao_quality;
|
||||
|
||||
common_data->ao_settings = 1.0f; /* USE_AO */
|
||||
if (scene_eval->eevee.flag & SCE_EEVEE_GTAO_ENABLED) {
|
||||
common_data->ao_settings = 1.0f; /* USE_AO */
|
||||
}
|
||||
if (scene_eval->eevee.flag & SCE_EEVEE_GTAO_BENT_NORMALS) {
|
||||
common_data->ao_settings += 2.0f; /* USE_BENT_NORMAL */
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue