Add pixel scale factor values for ortho cam
This commit is contained in:
@@ -30,6 +30,8 @@ namespace OpenVulkano::Scene
|
||||
Math::Matrix4f orthoMatrix = Math::Utils::orthoRH_ZO(-widthHalf, widthHalf, -heightHalf, heightHalf, m_nearPlane, m_farPlane);
|
||||
if (m_morphState == 1)
|
||||
{
|
||||
m_perPixelScaleFactor = m_height / heightHalf;
|
||||
m_scaleFactor = scale;
|
||||
SetProjectionMatrix(orthoMatrix);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user