refactor: reduce Window references
This commit is contained in:
@@ -338,8 +338,8 @@ void WorldRenderer::draw(
|
||||
|
||||
auto world = level.getWorld();
|
||||
|
||||
const Viewport& vp = pctx.getViewport();
|
||||
camera.aspect = vp.getWidth() / static_cast<float>(vp.getHeight());
|
||||
const auto& vp = pctx.getViewport();
|
||||
camera.setAspectRatio(vp.getRatio());
|
||||
|
||||
const auto& settings = engine.getSettings();
|
||||
const auto& worldInfo = world->getInfo();
|
||||
|
||||
Reference in New Issue
Block a user