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

Support for non-opaque items/fluids. #13

Open
wants to merge 2 commits into
base: master-1.16
Choose a base branch
from

Conversation

Hekera
Copy link

@Hekera Hekera commented Sep 26, 2021

No description provided.

@CLAassistant
Copy link

CLAassistant commented Sep 26, 2021

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@rubensworks rubensworks left a comment

Choose a reason for hiding this comment

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

Looks good in general!
I'll do a more detailed later, but in the meantime I already gave one comment on the level of abstraction of the new export tasks.

String subKey = "fluid:" + location;
//Test if fluid is opaque
if (RenderTypeLookup.canRenderInLayer(fluidEntry.getValue().getDefaultState(), RenderType.getSolid())) {
exportTasks.add((matrixStack, bImage) -> {
Copy link
Member

Choose a reason for hiding this comment

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

There's quite a bit of code duplication in these tasks. Could this be abstracted? Otherwise this significantly complicates maintenance effort in future updates.

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