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

Only clear the translucency sorting render queue when we're not rendering shadows. #798

Conversation

nshepperd
Copy link
Contributor

…ring shadows.

This matches the behaviour of the rebuild queues. Unconditionally clearing it in reset() does not work because sorting tasks are only spawned when not rendering shadows, and this combined with the fact that SodiumWorldRenderer spawns tasks (chunkRenderManager.updateChunks) before updating the render queues (chunkRenderManager.update) would result in translucency sorting never being triggered.

This is the third in a series of 3 PRs that fixes translucency sorting with shaders. The first two were #796 and #797. With this, translucency sorting works and is correctly updated on camera motion.

…ring shadows.

This matches the behaviour of the rebuild queues. Unconditionally
clearing it in reset() does not work because sorting tasks are only
spawned when not rendering shadows, and this combined with the fact that
SodiumWorldRenderer spawns tasks (chunkRenderManager.updateChunks())
*before* updating the render queues (chunkRenderManager.update) would
result in translucency sorting never being triggered.
@nshepperd
Copy link
Contributor Author

I'm pretty sure this is good but I wanna get embeddedt's opinion before merging this.

@mitchej123 mitchej123 enabled auto-merge (squash) December 16, 2024 21:27
@mitchej123 mitchej123 disabled auto-merge December 16, 2024 21:28
@mitchej123 mitchej123 changed the title Only clear the translucency sorting render queue when we're not rende… Only clear the translucency sorting render queue when we're not rendering shadows. Dec 16, 2024
@mitchej123 mitchej123 merged commit e2ee822 into GTNewHorizons:master Dec 16, 2024
1 check passed
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.

3 participants