Blender V5.0
DNA_layer_defaults.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11/* clang-format off */
12
13/* -------------------------------------------------------------------- */
16
17#define _DNA_DEFAULT_ViewLayerEEVEE \
18 { \
19 .ambient_occlusion_distance = 10.0f, \
20 }
21
22#define _DNA_DEFAULT_ViewLayer \
23 { \
24 .eevee = _DNA_DEFAULT_ViewLayerEEVEE, \
25\
26 .flag = VIEW_LAYER_RENDER | VIEW_LAYER_FREESTYLE, \
27\
28 /* Pure rendering pipeline settings. */ \
29 .layflag = SCE_LAY_FLAG_DEFAULT, \
30 .passflag = SCE_PASS_COMBINED, \
31 .pass_alpha_threshold = 0.5f, \
32 .cryptomatte_levels = 6, \
33 .cryptomatte_flag = VIEW_LAYER_CRYPTOMATTE_ACCURATE, \
34 }
35
37
38/* clang-format on */