Blender  V3.3
DNA_material_defaults.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #pragma once
8 
9 /* Struct members on own line. */
10 /* clang-format off */
11 
12 /* -------------------------------------------------------------------- */
16 #define _DNA_DEFAULT_Material \
17  { \
18  .r = 0.8, \
19  .g = 0.8, \
20  .b = 0.8, \
21  .specr = 1.0, \
22  .specg = 1.0, \
23  .specb = 1.0, \
24  .a = 1.0f, \
25  .spec = 0.5, \
26  \
27  .roughness = 0.4f, \
28  \
29  .pr_type = MA_SPHERE, \
30  \
31  .alpha_threshold = 0.5f, \
32  \
33  .blend_shadow = MA_BS_SOLID, \
34  \
35  .lineart.mat_occlusion = 1, \
36  }
37 
40 /* clang-format on */