bevy icon indicating copy to clipboard operation
bevy copied to clipboard

update camera projection if viewport changed

Open jakobhellermann opened this issue 3 years ago • 0 comments

fixes https://github.com/bevyengine/bevy/issues/5944

Uses the second solution:

  1. keep track of the old viewport in the computed_state, and if camera.viewport != camera.computed_state.old_viewport, then update the projection. This is more reliable, but needs to store two UVec2s more in the camera (probably not a big deal).

jakobhellermann avatar Sep 11 '22 09:09 jakobhellermann