@@ -92,9 +92,13 @@ void ShaderGenerator::ProcessGroupConstants(Box* box, Node* node, Value& value)
|
||||
value = Value(cv.W);
|
||||
break;
|
||||
}
|
||||
// Rotation
|
||||
case 8:
|
||||
{
|
||||
value = Value::Zero;
|
||||
const float pitch = (float)node->Values[0];
|
||||
const float yaw = (float)node->Values[1];
|
||||
const float roll = (float)node->Values[2];
|
||||
value = Value(Quaternion::Euler(pitch, yaw, roll));
|
||||
break;
|
||||
}
|
||||
// PI
|
||||
|
||||
@@ -460,6 +460,7 @@ ShaderGraphValue ShaderGraphValue::Cast(const ShaderGraphValue& v, VariantType::
|
||||
case VariantType::Types::Float4:
|
||||
case VariantType::Types::Double4:
|
||||
case VariantType::Types::Color:
|
||||
case VariantType::Types::Quaternion:
|
||||
switch (v.Type)
|
||||
{
|
||||
case VariantType::Types::Bool:
|
||||
@@ -485,16 +486,6 @@ ShaderGraphValue ShaderGraphValue::Cast(const ShaderGraphValue& v, VariantType::
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case VariantType::Types::Quaternion:
|
||||
switch (v.Type)
|
||||
{
|
||||
case VariantType::Types::Color:
|
||||
case VariantType::Types::Float4:
|
||||
case VariantType::Types::Double4:
|
||||
format = TEXT("{}");
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (format == nullptr)
|
||||
{
|
||||
|
||||
@@ -79,6 +79,7 @@ void VisjectExecutor::ProcessGroupConstants(Box* box, Node* node, Value& value)
|
||||
value = cv.W;
|
||||
break;
|
||||
}
|
||||
// Rotation
|
||||
case 8:
|
||||
{
|
||||
const float pitch = (float)node->Values[0];
|
||||
|
||||
Reference in New Issue
Block a user