Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2020-03-05 14:20:58 +0300
committerJeroen Bakker <jeroen@blender.org>2020-03-05 14:25:35 +0300
commit4d3da4e1d060232382df1414e0c99a094a9b1a28 (patch)
tree4ab38096f3ca25c926b3e4b4b26442cbbe77b87a /source
parent51e898324de30c0985a80e5bc067358b5ccedbfc (diff)
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.
Diffstat (limited to 'source')
-rw-r--r--source/blender/draw/engines/eevee/eevee_materials.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c
index 89e45148ee8..5e62a800fc5 100644
--- a/source/blender/draw/engines/eevee/eevee_materials.c
+++ b/source/blender/draw/engines/eevee/eevee_materials.c
@@ -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);
}
}