forked from Astrabit-ST/Luminol
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement saving map as image file (Astrabit-ST#131)
* fix: fix 1 frame delay when grid shader viewport size changes This fixes a bug where when the size of the map editor changes, the grid shader's internally stored value for the size of the map editor's viewport doesn't get updated until one frame later if the shader is using push constants. This caused the thicknesses of the grid lines to be inaccurate for a frame after resizing. * feat: add "Save map preview" button for saving map as image * style: replace `ScreenshotState` with an async block * perf: don't use padding in the texture when screenshotting * feat: handle screenshotting for maps larger than max texture size * fix: fix `width_padded` alignment value * style: remove unnecessary rounding from `max_texture_width`
- Loading branch information
1 parent
3ba7f83
commit 6678df2
Showing
7 changed files
with
402 additions
and
48 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.