mojira.dev
MC-148689

Smooth lighting / block shading does not work properly in certain cases

The bug

When placing stairs and blocks some of them placed have a shadow-like effect on them as if they are in the dark even though they are properly lit.

Linked issues

MC-148844 Torch lighting in cave systems Resolved MC-149121 Lighting breaks directly above blocks if there are blocks next to it Resolved MC-152601 Strange issues with smooth lighting Resolved MC-153152 lighting looks glitchy in small tunnels Resolved MC-155708 Bug on the Stairs Shadows Resolved

Attachments

Comments 23

Let's dig into this a little bit because I think this issue's title is a poor descriptor of the problem and I don't want future bug reports to be wrongly labeled as duplicates of this issue.

This is really an issue with ambient occlusion in smooth lighting, as it only occurs with smooth lighting on (note that minimum and maximum smooth lighting makes no difference, as per https://bugs.mojang.com/browse/MC-58668) and it is unrelated to actual in-game torch or sun light levels. We can see it in full effect if we use an all white texture and night vision:

[media]

Some parts are so jarringly un-smooth that it appears that there are some gray blocks, even though there is only 100% white blocks used in the scene.

Contrast with this scene in which wide (2x2) tunnels are used and the ambient occlusion is correct:

[media]


(one might say that you can see some subtle lines here that don't make it "truly" smooth, but this is just a side effect of the linear interpolation, and is unnoticeable once a proper texture is applied.)

I think a better title for this issue would be "Tight spaces break smoothness of smooth lighting's ambient occlusion effect"

László Rasmussen

Still an issue in 1.14.4 and 19w42a

Still present in 1.15 Pre-release 3

László Rasmussen

The fabric API alone, seems to fix this somehow. Just thought I would share that here, it might be useful,,,?

[media]

Confirmed for all 20w snapshots, including up to 20w09a.

13 more comments

Can confirm in 23w17a.

Still can confirm in 23w18a

Affects 1.20.1 to 1.20.2-pre2

Can confirm in 23w51b.

Can confirm in 1.21.5

Andy Hill

muzikbike

(Unassigned)

Confirmed

Gameplay

Low

Lighting, Rendering

rendering, smooth-lighting, smooth-lighting-interpolation-incorrect, smooth-lighting-not-smooth

Minecraft 1.14 Pre-Release 5, Minecraft 1.14, Minecraft 1.14.3, 1.14.4, 19w42a, ..., 1.20.2 Pre-release 2, 1.20.4, 23w51b, 1.21, 1.21.7

Retrieved