Render: disable Z pass by default, leave only Combined
It was somewhat arbitrary to have this one pass enabled that adds a bit of additional memory and render time overhead, even though it's not necessarily more important than others.
This commit is contained in:
parent
2d3e5eda3f
commit
646f7ef73c
Notes:
blender-bot
2023-06-16 15:32:26 +02:00
Referenced by issue #96698, GPencil: Depth of grease pencil object changes in render Referenced by issue #96545, greasepencil It doesn't render properly Referenced by issue #91469, GPencil: Enable Z Pass not possible in workbench render engine Referenced by issue #109054, Grease Pencil: Wrong 3D sorting
|
@ -180,7 +180,7 @@ static ViewLayer *view_layer_add(const char *name)
|
|||
|
||||
/* Pure rendering pipeline settings. */
|
||||
view_layer->layflag = 0x7FFF; /* solid ztra halo edge strand */
|
||||
view_layer->passflag = SCE_PASS_COMBINED | SCE_PASS_Z;
|
||||
view_layer->passflag = SCE_PASS_COMBINED;
|
||||
view_layer->pass_alpha_threshold = 0.5f;
|
||||
view_layer->cryptomatte_levels = 6;
|
||||
view_layer->cryptomatte_flag = VIEW_LAYER_CRYPTOMATTE_ACCURATE;
|
||||
|
|
|
@ -318,6 +318,11 @@ static void blo_update_defaults_scene(Main *bmain, Scene *scene)
|
|||
/* Rename render layers. */
|
||||
BKE_view_layer_rename(bmain, scene, scene->view_layers.first, "View Layer");
|
||||
|
||||
/* Disable Z pass by default. */
|
||||
LISTBASE_FOREACH (ViewLayer *, view_layer, &scene->view_layers) {
|
||||
view_layer->passflag &= ~SCE_PASS_Z;
|
||||
}
|
||||
|
||||
/* New EEVEE defaults. */
|
||||
scene->eevee.bloom_intensity = 0.05f;
|
||||
scene->eevee.bloom_clamp = 0.0f;
|
||||
|
|
Loading…
Reference in New Issue