Skip to content

Fix decal atlas clipped when using texture resolution < 32 #108073

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gaktan
Copy link
Contributor

@Gaktan Gaktan commented Jun 28, 2025

This fixes issue #108033.

When a texture's resolution in a decal atlas was < 32, the border margin was no longer taken into account. Resulting in cropped textures in the atlas.

The fix might sound unintuitive, but basically an atlas_height of 1 = border size (32).
So, an atlas_height of 2 = border size * 2. Which is the minimum size required to insert textures into the atlas.

@Gaktan Gaktan requested a review from a team as a code owner June 28, 2025 11:03
@Gaktan Gaktan force-pushed the fix-decal-atlas branch from 06a820b to 73e9428 Compare June 28, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants