Blender V4.3
DNA_material_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
9#pragma once
10
11/* clang-format off */
12
13/* -------------------------------------------------------------------- */
17/* Keep RGBA diffuse defaults in sync with #rna_def_material_display in rna_material.cc */
18#define _DNA_DEFAULT_Material \
19 { \
20 .r = 0.8, \
21 .g = 0.8, \
22 .b = 0.8, \
23 .specr = 1.0, \
24 .specg = 1.0, \
25 .specb = 1.0, \
26 .a = 1.0f, \
27 .spec = 0.5, \
28 \
29 .roughness = 0.4f, \
30 \
31 .pr_type = MA_SPHERE, \
32 \
33 .alpha_threshold = 0.5f, \
34 \
35 .blend_shadow = MA_BS_SOLID, \
36 \
37 .blend_flag = MA_BL_TRANSPARENT_SHADOW,\
38 \
39 .lineart.mat_occlusion = 1, \
40 }
41
44/* clang-format on */