Minor tweaks to #716

This commit is contained in:
Wojtek Figat
2022-06-14 19:56:58 +02:00
parent 8eb59703bd
commit 7c923198e0
5 changed files with 9 additions and 10 deletions

View File

@@ -488,6 +488,11 @@ void MaterialGenerator::ProcessGroupMaterial(Box* box, Node* node, Value& value)
{
value = Value(VariantType::Float2, box->ID == 0 ? TEXT("ViewSize.xy") : TEXT("ViewSize.zw"));
}
else
{
// Fallback to Screen Size
value = Value(VariantType::Float2, box->ID == 0 ? TEXT("ScreenSize.xy") : TEXT("ScreenSize.zw"));
}
break;
}
default: