Merge branch 'Atan2DefaultValueFix' of https://github.com/xxSeys1/FlaxEngine into xxSeys1-Atan2DefaultValueFix
This commit is contained in:
@@ -372,8 +372,8 @@ void ShaderGenerator::ProcessGroupMath(Box* box, Node* node, Value& value)
|
|||||||
// Atan2
|
// Atan2
|
||||||
case 41:
|
case 41:
|
||||||
{
|
{
|
||||||
Value v1 = tryGetValue(node->GetBox(0), Value::Zero);
|
Value v1 = tryGetValue(node->GetBox(0), 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("atan2"));
|
value = writeFunction2(node, v1, v2, TEXT("atan2"));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user