diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-03-29 21:18:08 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-03-29 21:18:19 +0300 |
commit | d6747f310f1235084e37d871212fb66aff37ba13 (patch) | |
tree | c209d23b1f57045f6806a1f3da84ffa852bd7149 /release/scripts | |
parent | f0a20ae1c9505342721f841bcf537d465b5a54eb (diff) |
Eevee: Material: Decouple transparent shadows from blend mode
This makes it easier to exclude a surface from casting shadows and can be
used to manipulate the shadows even for opaque surfaces.
Versionning ensure that old behavior is transfered to new rendering logic.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index 260e57c4b1c..145e9cf4c06 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -213,13 +213,11 @@ class EEVEE_MATERIAL_PT_settings(MaterialButtonsPanel, Panel): mat = context.material layout.prop(mat, "blend_method") + layout.prop(mat, "shadow_method") - if mat.blend_method != 'OPAQUE': - layout.prop(mat, "transparent_shadow_method") - - row = layout.row() - row.active = ((mat.blend_method == 'CLIP') or (mat.transparent_shadow_method == 'CLIP')) - row.prop(mat, "alpha_threshold") + row = layout.row() + row.active = ((mat.blend_method == 'CLIP') or (mat.shadow_method == 'CLIP')) + row.prop(mat, "alpha_threshold") if mat.blend_method not in {'OPAQUE', 'CLIP', 'HASHED'}: layout.prop(mat, "show_transparent_back") |