mojira.dev
MC-171859

The back faces of leaves do not render

The resource pack attached to MC-237955 offers a complete fix for this issue. Mojang have my full permission to (and are encouraged to) replace the affected vanilla model files with the contents of the resource pack.

The bug

The back faces of leaves blocks do not render. This results in single leaves blocks looking rather odd, as only the faces closest to the player are visible, making it look like the block only has one to three faces total.

This can be considered a parity issue, as leaves in Bedrock Edition are not subject to this.

How to reproduce

  1. Obtain leaves via your preferred method

  2. Place down a single, isolated leaves block of any type

  3. Observe how many faces are visible. Depending on the view direction, between one and three faces are able to be seen.

  4. Now go around to the other side of the leaves block

  5. Note how there are indeed faces there as well, despite the original view direction implying there are no faces with leaves.

Expected result

These back faces of leaves would be visible from all faces.

Actual result

The leaves block just doesn't show the back faces, which looks very strange in isolation.

How to fix

The resource pack attached to MC-237955 fixes this issue completely. A new "hollow cube" template model is created by it, based on the old powder snow model. Powder snow, spawners (MC-169969) and both types of azalea leaves are all pointed to this model, resulting in them having internal faces. A tinted version of the model is also added, which the six remaining types of leaves use to have internal planes.

If this fix is used, it may be worth changing the culling behaviour of leaves to make outside faces be culled by adjacent leaves, while leaving the inside faces as-is, as to make large amounts of leaves not appear excessively dense. On fast graphics mode, it may be advisable to make the inside faces not render at all, in addition to culling the outside faces like normal blocks (MC-179383).

Linked issues

Attachments

Comments

muzikbike

Fixed model attached. It seems leaves not culling each other is hardcoded, so that will need to be changed such that only inside faces are the faces affected by this rather than outside faces, otherwise a z-fighting issue will end up arising since the unculled faces will end up coinciding with the new internal faces.

migrated

Duplicate of [MC-34751]

muzikbike

Confirmed for 21w40a.

May I request ownership of this issue due to the reporter having no activity since the start of 2020?

Tanuki_Bakero

Confirmed with 21w42a

muzikbike

(Unassigned)

Confirmed

Rendering

missing-planes, vanilla-parity

1.15.2, 20w51a, 1.16.5, 21w13a, 1.17.1, 21w40a, 21w42a

Retrieved