Not even with long texts and small scales

This commit is contained in:
Dynamitos committed 2022-04-17 09:10:20 +02:00
1 parent 03e1a5784d
commit 796271f334
17 files changed
+127 -105

No files matched your search

@@ -53,6 +53,14 @@ void CameraComponent::moveY(float amount)
bNeedsViewBuild = true;
}
void CameraComponent::setViewport(Gfx::PViewport newViewport)
{
viewport = newViewport;
aspectRatio = viewport->getSizeX() / (float)viewport->getSizeY();
bNeedsProjectionBuild = true;
}
void CameraComponent::buildViewMatrix()
{
Vector eyePos = getAbsoluteTransform().getPosition();