-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework content scale to provide more options, add integer scaling
- Add content stretch modes Fractional (default), Integer and Hybrid. - All modes with with any stretch mode and aspect. - Fractional behaves as Godot currently does when scaling viewports. Pixel art will only look good when the window is scaled at multiples of the original size. - Integer enforces an integer scale for the final display (rounded down from the automatically computed fractional scale). Black bars may be displayed on all sides when using the `viewport` stretch mode. This provides crisp pixel art appearance. - Hybrid enforces an integer scale on the internal rendering resolution, but the viewport will be stretched down to the final display with linear filtering. This provides good pixel art appearance, though not as crisp as the Integer mode. - Tweak project setting for stretch scale to allow values as low as 0.5 (values below 1 are valid, and can be useful for UI testing purposes). TODO: - Implement hybrid filtering mode.
- Loading branch information
Showing
3 changed files
with
84 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters