EEVEE: Render Passes Blending

Changed the blending mode to full blending. I found the issue when
during development of a material pass containing alpha values.
This commit is contained in:
Jeroen Bakker 2020-03-05 12:20:58 +01:00
parent 51e898324d
commit 4d3da4e1d0
1 changed files with 1 additions and 1 deletions

View File

@ -1331,7 +1331,7 @@ void EEVEE_materials_cache_init(EEVEE_ViewLayerData *sldata, EEVEE_Data *vedata)
memset(psl->material_accum_pass, 0, sizeof(psl->material_accum_pass));
for (int pass_index = 0; pass_index < stl->g_data->render_passes_material_count;
pass_index++) {
DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_DEPTH_EQUAL | DRW_STATE_BLEND_ADD;
DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_DEPTH_EQUAL | DRW_STATE_BLEND_ADD_FULL;
DRW_PASS_CREATE(psl->material_accum_pass[pass_index], state);
}
}