Closed TheRawMeatball closed 2 years ago
The thickness of the outline is specified in logical screen pixels, so I would expect that they become relatively thicker when you shrink the viewport.
I'm not sure how to interpret the 2000x200 aspect ratio of the viewport. This is obviously the cause of the outlines being thicker along the Y axis than the X axis. However, the scene is not being rendered with this aspect. The window isn't even that big. The rendering appears to be scaled to fit in the right-hand size of the render target, and those are the dimensions which need to be used in calculating the scaling factors.
It's not really clear what the correct behaviour should be, so I'm closing this for now. Perhaps it is a bevy issue that the size of the rendering doesn't match the physical_size? Please open a new issue if you have a clearer example/explanation. Thanks.
Using this crate with custom scaled viewports leads to unnatural artefacts.
Using the code above to spawn the camera in the
shapes
example should be enough to reproduce the bug.