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

feat: add spriteAtlasPadding configuration option #582

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

marianyp
Copy link
Contributor

This adds a spriteAtlasPadding setting to the kaplay configuration to allow there to be padding in the sprite atlas. The default padding is 0.

This is especially useful when dealing with shaders. It's possible to run into issues due to neighboring sprites in the atlas.

Like this case with an outline shader for example:

image

https://discord.com/channels/883781994583056384/1239714504284045313/1239825037461295156

Copy link

pkg-pr-new bot commented Jan 11, 2025

Open in Stackblitz

npm i https://pkg.pr.new/kaplayjs/kaplay@582

commit: 920d81c

@lajbel lajbel merged commit c11476f into kaplayjs:master Jan 13, 2025
2 checks passed
@lajbel lajbel added the crossplay Something that should be in both versions, v3001 and v4000 label Jan 13, 2025
@lajbel lajbel added this to the 3001 milestone Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crossplay Something that should be in both versions, v3001 and v4000
Projects
Status: DONE
Development

Successfully merging this pull request may close these issues.

3 participants