Update Source/Engine/Tools/MaterialGenerator/MaterialGenerator.Material.cpp
Co-authored-by: stefnotch <stefnotch@users.noreply.github.com>
This commit is contained in:
@@ -533,8 +533,8 @@ void MaterialGenerator::ProcessGroupMaterial(Box* box, Node* node, Value& value)
|
|||||||
// FWidth
|
// FWidth
|
||||||
case 41:
|
case 41:
|
||||||
{
|
{
|
||||||
const auto d = tryGetValue(node->GetBox(0), node->Values[0]).AsFloat();
|
const auto inValue = tryGetValue(node->GetBox(0), 0, Value::Zero);
|
||||||
value = writeLocal(ValueType::Float, String::Format(TEXT("abs(ddx({0})) + abs(ddy({0}))"), d.Value), node);
|
value = writeLocal(inValue.Type, String::Format(TEXT("fwidth({0})"), inValue.Value), node);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//AAStep (smooth version of step)
|
//AAStep (smooth version of step)
|
||||||
|
|||||||
Reference in New Issue
Block a user