Skip to content

Fix LOD chunk rendering bugs#140

Merged
Purdze merged 1 commit intomasterfrom
fix/lod-rendering
Apr 6, 2026
Merged

Fix LOD chunk rendering bugs#140
Purdze merged 1 commit intomasterfrom
fix/lod-rendering

Conversation

@Purdze
Copy link
Copy Markdown
Collaborator

@Purdze Purdze commented Apr 6, 2026

Summary

  • Fix distant blocks rendering at 2x/4x size by removing incorrect scale multiplication from LOD cube vertices
  • Re-mesh chunks when player moves and their LOD level changes (was only meshing on load/block-update)
  • Use actual biome grass/foliage tints in LOD cubes instead of hardcoded white
  • Fix chunk flash on block update by using XZ-only distance for fade-in nearby check

Test plan

  • Distant blocks render at correct 1x1x1 size, not oversized
  • Walking toward distant chunks transitions them from LOD 2 to LOD 0 smoothly
  • Grass/leaves in distant chunks show correct biome green tint
  • Punching the floor does not cause the chunk to flash

- Remove scale multiplication from LOD cube vertices so distant blocks
  render at correct 1x1x1 size instead of 2x or 4x oversized
- Re-mesh chunks when player moves and LOD level changes, tracking
  meshed LOD per chunk and comparing on chunk position change
- Use actual biome grass/foliage tints in LOD cubes instead of white
- Fix fade-in nearby check to use XZ distance only so tall chunks
  don't flash on re-mesh
@Purdze Purdze merged commit d776483 into master Apr 6, 2026
6 checks passed
@Purdze Purdze deleted the fix/lod-rendering branch April 6, 2026 20:49
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.

1 participant