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

Properly prevent block face culling when TS is active #796

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

embeddedt
Copy link
Collaborator

@embeddedt embeddedt commented Dec 16, 2024

Translucency sorting will reorder the quads in-place within the vertex buffer, which results in quads being moved into the wrong slice. Since the renderer will decide to skip groups of quads based on their slice, this can result in quads disappearing when they shouldn't. The fix is to store a single UNASSIGNED slice which effectively disables the optimization on translucency-sorted sections. This is also how modern Embeddium handles it.

Kudos to @nshepperd for debugging this issue.

@mitchej123 mitchej123 merged commit debfcdf into master Dec 16, 2024
1 check passed
@mitchej123 mitchej123 deleted the fix-ts-block-face-culling branch December 16, 2024 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants