Skip to content

Commit 4849a4b

Browse files
committed
partial 3delight shader alpha value support
1 parent 69d606d commit 4849a4b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/DzBridgeAction.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5519,8 +5519,14 @@ bool DzBridgeAction::combineDiffuseAndAlphaMaps(DzMaterial* Material)
55195519
// DB 2023-Oct-5: Analyze Material, combine diffuse and alpha (cutout)
55205520
bool bHasCutout = false;
55215521
DzProperty* cutoutProp = Material->findProperty("Cutout Opacity");
5522+
DzProperty* opacityStrengthProp = Material->findProperty("Opacity Strength");
55225523
DzImageProperty* imageProp = qobject_cast<DzImageProperty*>(cutoutProp);
55235524
DzNumericProperty* numericProp = qobject_cast<DzNumericProperty*>(cutoutProp);
5525+
if (!cutoutProp && opacityStrengthProp)
5526+
{
5527+
imageProp = qobject_cast<DzImageProperty*>(opacityStrengthProp);
5528+
numericProp = qobject_cast<DzNumericProperty*>(opacityStrengthProp);
5529+
}
55245530
QString sAlphaFilename = "";
55255531
if (imageProp)
55265532
{

0 commit comments

Comments
 (0)