Files
test/source/blender/makesdna/DNA_material_defaults.h
Miguel Pozo 6d0b5e2ace EEVEE-Next: New shadow settings
Remove `Material > Shadow Mode` and use `Object > Shadow Ray Visibility`
and `Material > Transparent Shadows` instead.

The versioning system auto-updates objects/materials in EEVEE
scenes so their behavior is as close as possible to the previous one.

Update Cycles to use the native `use_transparent_shadow` property.

Note:
Material changes don't set any `recalc` flag on the objects that use
them, so the EEVEE Next shadow maps don't update when changing
settings/nodes.
Fixing this issue is required for 4.1, but it's out of the scope of this PR.

Pull Request: https://projects.blender.org/blender/blender/pulls/113980
2023-11-06 15:45:00 +01:00

45 lines
753 B
C

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup DNA
*/
#pragma once
/* Struct members on own line. */
/* clang-format off */
/* -------------------------------------------------------------------- */
/** \name Material Struct
* \{ */
#define _DNA_DEFAULT_Material \
{ \
.r = 0.8, \
.g = 0.8, \
.b = 0.8, \
.specr = 1.0, \
.specg = 1.0, \
.specb = 1.0, \
.a = 1.0f, \
.spec = 0.5, \
\
.roughness = 0.4f, \
\
.pr_type = MA_SPHERE, \
\
.alpha_threshold = 0.5f, \
\
.blend_shadow = MA_BS_SOLID, \
\
.blend_flag = MA_BL_TRANSPARENT_SHADOW,\
\
.lineart.mat_occlusion = 1, \
}
/** \} */
/* clang-format on */