Add support for Quaternion in GPU particles graph

#2901
This commit is contained in:
Wojtek Figat
2024-12-06 17:38:16 +01:00
parent ce23c2efaf
commit 0cf31395b5
5 changed files with 9 additions and 11 deletions

View File

@@ -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