The bug
It seems that the top of water doesn't get rendered if there is transparent block (this also includes slabs for example) in a 1 block radius one block higher than the water. This makes water look pretty strange if it is tilted.
How to reproduce (general steps)
Fill a 3 x 4 area of a solid block like stone
Place water or lava below middle block at the edge of a 3 blocks side
Move inside the lava or water block and rotate in the direction of the area you filled
How to reproduce (commands)
Use the following commands without moving
Optional to make sure the water or lava block does not move you
/gamemode spectator
/tp ~ ~ ~ 0 0
/fill ~-1 ~2 ~ ~1 ~2 ~3 stone
/setblock ~ ~1 ~ water
Attachments
Comments 14
Can confirm in 20w51a. Here's the updated 4th reproduction steps as flowing_water
no longer exists in the latest version.
/setblock ~ ~1 ~ water
I've conduced a test, and removing the `FluidState.shouldRenderBackwardUpFace
` check makes this issue go away, however it also substantially changes how flooded caves look from the inside and generates twice as much geometry for their water surfaces. To both make sure inside upper water faces are generated for flowing water and flooded caves don't regress, a better heuristic for distinguishing these cases is needed, i.e. this bug is kinda complicated.
I've attached a comparison image.
[media]
Can confirm for MC 1.12.1.