Faces of the elements of block models go up to black if there are blocks next to them / Block lighting is applied incorrectly
The bug
If a block model has elements inside or outside the block's boundaries, their faces will go up to fully black if you place blocks around them. All faces of model elements are treated as if they were directly at the block's boundaries.
Important note: this bug is partially dependent on ambient occlusion (smooth lighting). If the smooth lighting is turned off, only the top and bottom faces get darker. If it's turned on, the west/east/north/south sides also get affected.
Without smooth lighting:

With smooth lighting:

Steps to reproduce
Install theĀ attached test resource pack and try placing chiseled quartz blocks next to each other.
2019-04-19, 01:42 PM
2024-01-18, 02:46 AM
25
19
block-model, lighting, rendering
Minecraft 1.13.2 - 23w13a
Minecraft 1.13.2, Minecraft 1.14 Pre-Release 2, Minecraft 1.14 Pre-Release 3, Minecraft 1.14 Pre-Release 4, Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.1, Minecraft 1.14.2 Pre-Release 2, Minecraft 1.14.2 Pre-Release 3, 1.14.4, 19w37a, 19w38b, 19w41a, 19w42a, 1.15.2, 20w16a, 20w17a, 20w21a, 1.16 Pre-release 5, 1.16 Pre-release 6, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 1.16.2, 21w03a, 1.16.5, 21w05a, 21w05b, 21w07a, 21w15a, 1.17.1, 21w39a, 1.19, 1.19.4, 23w13a
-