Fix image orientation

This commit is contained in:
Georg Hagen
2025-02-25 20:21:22 +01:00
parent 6cc778021f
commit 249f9dfa99

View File

@@ -300,8 +300,8 @@ namespace OpenVulkano::Image
{
orientationRad = Math::Utils::NormalizeAngleRad(orientationRad);
if (orientationRad > 0.78f && orientationRad < 2.35f) orientation = 8;
else if (orientationRad < 3.93f && orientationRad >= 2.35f) orientation = 3;
else if (orientationRad < 5.5f) orientation = 6;
else if (orientationRad >= 2.35f && orientationRad < 3.93f) orientation = 3;
else if (orientationRad >= 3.93f && orientationRad < 5.5f) orientation = 6;
else orientation = 1;
}