-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update texture_atlas example with different padding and sampling (#10073
) # Objective - Expand the texture_atlas example with padding and show how it can resolve sprite bleeding for different types of sampling. - Fixes #9522 ## Solution Updated the texture_atlas example by adding 4 different texture atlases: 1. linear, no padding 2. linear, padding 3. nearest neighbor, no padding 4. nearest neighbor, padding Now renders one padded and one unpadded texture atlas, and the same upscaled sprite from each of the new texture atlases. See the screenshot below (taken on 1080p monitor). ![Screenshot from 2023-10-10 08-37-43](https://github.com/bevyengine/bevy/assets/46004494/4cef707c-e117-4835-b2c8-66503d8c275f) **From left->right:** linear no padding, nearest no padding, linear padding, nearest padding. --- --------- Co-authored-by: davidasberg <[email protected]>
- Loading branch information
1 parent
16c5a4b
commit ca1874e
Showing
1 changed file
with
181 additions
and
23 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