Fix image orientation
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user