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 worldaligned textures #12213

Merged
merged 1 commit into from Apr 24, 2022
Merged

Fix worldaligned textures #12213

merged 1 commit into from Apr 24, 2022

Conversation

Oblomov
Copy link
Contributor

@Oblomov Oblomov commented Apr 24, 2022

As reported in #12197, b0b9732
introduces a regression in worldalign textures.

The specific change that seems to be responsible for this issue is the
change in order between the computation of the cuboid texture
coordinates and the box edge correction.

Fix #12197 by moving the box edge correction back to before the cuboid
texture coordinates, as it used to be.

As reported in minetest#12197, b0b9732
introduces a regression in worldalign textures.

The specific change that seems to be responsible for this issue is the
change in order between the computation of the cuboid texture
coordinates and the box edge correction.

Fix minetest#12197 by moving the box edge correction back to before the cuboid
texture coordinates, as it used to be.
Copy link
Member

@sfan5 sfan5 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 (the code, I did not observe the result)

Copy link
Member

@SmallJoker SmallJoker left a comment

Choose a reason for hiding this comment

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

comparison

The pattern no longer repeats for each tile. Works.

@NathanSalapat
Copy link
Contributor

Textures work correctly, and shadows still function. 👍

@sfan5 sfan5 merged commit b55d7cd into minetest:master Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Worldalign not working on nodeboxes anymore.
4 participants