Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-03-29 21:18:08 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-03-29 21:18:19 +0300
commitd6747f310f1235084e37d871212fb66aff37ba13 (patch)
treec209d23b1f57045f6806a1f3da84ffa852bd7149 /release/scripts/startup/bl_ui/properties_material.py
parentf0a20ae1c9505342721f841bcf537d465b5a54eb (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/startup/bl_ui/properties_material.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_material.py10
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")