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

fix: enable block tinting in LOD chunks #18

Merged
merged 1 commit into from
Aug 23, 2021
Merged

Conversation

naalit
Copy link
Contributor

@naalit naalit commented Aug 16, 2021

Updates for the API changes in MovingBlocks/Terasology#4847, querying biomes from the ChunkView used for meshing instead of the WorldProvider.

* @param relZ z position of the block to get biome of, relative to the chunk view
* @return Biome of the block
*/
Optional<Biome> getBiome(ChunkView view, int relX, int relY, int relZ);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a set method of this form for symmetry?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe - there are already setBiome methods operating on a Chunk, though, without corresponding getBiomes.

Copy link
Contributor

@keturn keturn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests out okay here. Will merge shortly, after the corresponding engine version has built in CI.

@keturn keturn merged commit 52eca35 into develop Aug 23, 2021
@keturn keturn deleted the fix/lod-block-tinting branch August 23, 2021 15:14
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