Fix #3342 to properly place new param in Constant Buffer

#3299
This commit is contained in:
Wojtek Figat
2025-08-14 11:53:25 +02:00
parent 5e19a9729b
commit 1087bd2445
12 changed files with 31 additions and 34 deletions

View File

@@ -48,28 +48,14 @@ void MaterialGenerator::ProcessGroupTools(Box* box, Node* node, Value& value)
}
// Time
case 3:
{
switch (box->ID)
{
// Scaled Time
case 0:
value = getScaledTime;
break;
// Unscaled Time
case 1:
value = getUnscaledTime;
break;
default:
break;
}
value = box->ID == 1 ? getUnscaledTime : getTime;
break;
}
// Panner
case 6:
{
// Get inputs
const Value uv = tryGetValue(node->GetBox(0), getUVs).AsFloat2();
const Value time = tryGetValue(node->GetBox(1), getUnscaledTime).AsFloat();
const Value time = tryGetValue(node->GetBox(1), getTime).AsFloat();
const Value speed = tryGetValue(node->GetBox(2), Value::One).AsFloat2();
const bool useFractionalPart = (bool)node->Values[0];