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

Add support for custom meshing #46

Merged
merged 17 commits into from
Jan 13, 2025
Merged

Conversation

splashdust
Copy link
Owner

@splashdust splashdust commented Jan 5, 2025

This PR adds support for custom meshing and a way to add custom component bundles to chunks during meshing.

  • Adds possibility of customizing the meshing step through a chunk_meshing_delegate function in the config.
  • Add possibility to insert components bundles from meshing function.
  • Makes various types and functions associated with meshing public.

Breaking Changes:

  • type ChunkUserBundle now needs to be implemented for VoxelWorldConfig:
impl VoxelWorldConfig for MainWorld {
    type MaterialIndex = u8;
    type ChunkUserBundle = ();
    ...
}

Closes #4

@splashdust splashdust changed the title Add support custom meshing Add support for custom meshing Jan 6, 2025
@Rainy-Afternoon
Copy link

Rainy-Afternoon commented Jan 12, 2025

Praying this would go through because I'm looking for a modern updated solution for stuff like this.

@splashdust splashdust marked this pull request as ready for review January 13, 2025 21:08
@splashdust splashdust merged commit c1723b3 into main Jan 13, 2025
3 checks passed
@splashdust splashdust deleted the feat/support-custom-meshing branch January 13, 2025 21:09
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.

Add support for custom voxel shapes
2 participants