Fix fmod to use default box value.

This commit is contained in:
Chandler Cox
2025-03-15 15:43:41 -05:00
parent 87e423ed48
commit c26c217bf7

View File

@@ -365,7 +365,7 @@ void ShaderGenerator::ProcessGroupMath(Box* box, Node* node, Value& value)
case 40:
{
Value v1 = tryGetValue(node->GetBox(0), Value::Zero);
Value v2 = tryGetValue(node->GetBox(1), Value::Zero);
Value v2 = tryGetValue(node->GetBox(1), 1, Value::Zero);
value = writeFunction2(node, v1, v2, TEXT("fmod"));
break;
}