Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - OrthographicProjection: place origin at integer pixel with WindowSize scaling mode #4085

Closed
wants to merge 1 commit into from

Commits on Mar 3, 2022

  1. OrthographicProjection: place origin at integer pixel with WindowSize…

    … scaling mode
    
    One way to avoid texture atlas bleeding is to ensure that every vertex is
    placed at an integer pixel coordinate. This is a particularly appealing
    solution for regular structures like tile maps.
    
    Doing so is currently harder than necessary when the WindowSize scaling
    mode and Center origin are used: For odd window width or height, the
    origin of the coordinate system is placed in the middle of a pixel at
    some .5 offset.
    
    Avoid this issue by rounding the half width and height values.
    neocturne committed Mar 3, 2022
    Configuration menu
    Copy the full SHA
    6fa4d1a View commit details
    Browse the repository at this point in the history