remove Viewport class

This commit is contained in:
MihailRis
2025-04-02 17:35:17 +03:00
parent 105561ad77
commit 9843a1fc27
17 changed files with 60 additions and 115 deletions
+1 -1
View File
@@ -339,7 +339,7 @@ void WorldRenderer::draw(
auto world = level.getWorld();
const auto& vp = pctx.getViewport();
camera.setAspectRatio(vp.getRatio());
camera.setAspectRatio(vp.x / static_cast<float>(vp.y));
const auto& settings = engine.getSettings();
const auto& worldInfo = world->getInfo();