Fix incorrect mapping of fluid side textures
muzikbike opened this issue ยท 0 comments
Request Description
The side textures for fluids are not mapped correctly in vanilla or Sodium:
- While the top faces correctly map to the center of the texture file, the side faces map to the top left of it, for some reason. (https://bugs.mojang.com/browse/MC-267861)
- In addition, the texture is mapped horizontally flipped from what it should be. (https://bugs.mojang.com/browse/MC-267863)
Since fluids don't use proper json models even ten years later, this cannot be fixed via resource packs, and requires code changes. Since there are other issues with vanilla fluid rendering that I have reported and am still to report, I figured this report would fit nicely among them.
This issue is quite hard to see with vanilla's water and lava textures, so I'd recommend using the resource pack attached to MC-267861 to see the issue in action.
Note: when fixing the flipped textures issue, the interior of the fluid should be made to render horizontally flipped instead. This is to ensure that every pixel on the outside corresponds to the same pixel on the inside, as is the case for blocks such as powder snow, and in 1.20.3+, spawners and trial spawners.