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

Switch render order of block aligned and unaligned block faces #2038

Closed
wants to merge 1 commit into from

Conversation

Altirix
Copy link
Contributor

@Altirix Altirix commented Aug 23, 2023

This results in the internal cube for slime and honey blocks being rendered more correctly.
262338598-f1d33679-49a5-4644-a8ac-13339b5c1e25

it seems to render fine but does this negatively affect performance if those faces are done before axis-aligned ones?

renders faces better than before. unsure if this has other unintended side effects, it seems to render fine but does this negatively affect performance if those faces are done before axis aligned ones?

potential fix for honey & slime internal faces
@douira
Copy link
Collaborator

douira commented Aug 23, 2023

I don't think it would affect performance beyond what rendering translucent faces in the right order to begin with would cost.

@Altirix Altirix marked this pull request as ready for review September 18, 2023 06:48
Copy link
Collaborator

@douira douira left a comment

Choose a reason for hiding this comment

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

I wonder how this actually makes a difference because I think the order in which the quads are eventually rendered depends on the order of the enum and how it's then used in https://github.com/CaffeineMC/sodium-fabric/blob/dev/src/main/java/me/jellysquid/mods/sodium/client/render/chunk/DefaultChunkRenderer.java#L136

@jellysquid3
Copy link
Member

This PR does not make sense to me. The render order of geometry is determined by the renderer and is independent of the meshing process. Unless the slime/honey blocks for some reason just don't have their geometry tagged as sided for some reason (which would be a different bug) this PR should not fix anything.

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