Skip to content

Changing the output resolution without changing the window size #14018

Discussion options

You must be logged in to vote

I think the correct way to achieve this is configuring camera (there could be more than one camera in scene, each of them could have different resolution multipliers (for example portrait of main hero could have lower/higher resolution than main scene)). You are using Camera2dBundle::default(), I propose to change Camera2dBundle::projection, namely set OrthographicProjection::scaling_mode to ScalingMode::WindowSize(0.5), for example description of OrthographicProjection already has example for decreasing resolution:
Configure the orthographic projection to one world unit per 100 window pixels:

let projection = Projection::Orthographic(OrthographicProjection {
    scaling_mode: ScalingMode…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@DrupalDoesNotExists
Comment options

Answer selected by DrupalDoesNotExists
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@bugsweeper
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants