Eevee: Transparency: Add transparent Shadow method UI.

This commit is contained in:
Clément Foucault
2017-07-11 12:39:20 +02:00
parent ec9330d206
commit c0f2cbab4e
4 changed files with 56 additions and 15 deletions

View File

@@ -1172,12 +1172,18 @@ class EEVEE_MATERIAL_PT_options(MaterialButtonsPanel, Panel):
layout.prop(mat, "blend_method")
if mat.blend_method not in {"CLIP", "HASHED"}:
layout.prop(mat, "blend_hide_backside")
if mat.blend_method != "OPAQUE":
layout.prop(mat, "transparent_shadow_method")
if mat.blend_method == "CLIP":
row = layout.row()
row.active = ((mat.blend_method == "CLIP") or (mat.transparent_shadow_method == "CLIP"))
layout.prop(mat, "alpha_threshold")
if mat.blend_method not in {"OPAQUE", "CLIP", "HASHED"}:
layout.prop(mat, "transparent_hide_backside")
classes = (
MATERIAL_MT_sss_presets,
MATERIAL_MT_specials,