mojira.dev
MC-12558

Light leaking through corners with Smooth Lighting on

The bug

With Smooth Lighting turned on (minimum or maximum doesn't matter) light will spill through the corner of a block if there is a light source either behind or beneath an adjacent block.

How to reproduce

  1. /fill ~-1 ~-1 ~-1 ~3 ~3 ~3 sandstone hollow
  2. /setblock ~3 ~2 ~2 glowstone
  3. /setblock ~2 ~2 ~2 sandstone
  4. Look at the corner with the light source behind

    /teleport @s ~ ~ ~ -50 -10

Linked issues

MC-135799 Lava light shining through block borders Resolved MC-139513 Small bits of light appears to go through slabs Resolved MC-140149 Found lighting bug still present with stairs Resolved MC-148718 Weird diagonal lighting on sand block in closed environment Resolved MC-149625 Light issue with lava and blocks next to it Resolved

Attachments

Comments 48

Explanation on set 3:
(a) shows the glitch with the test setup. The two light patches point toward a hidden light source.
(b) shows the blocks behind the glitchy spot. Note the empty space above the glowstone.
(c) shows no glitch when the previously empty spot is filled with a solid block.

If the block removed between a and b is placed again after c, the result is no glitch on any of the blocks. So there seems to be some relation with the transparency of the blocks surrounding the light source in regards to whether the glitch appears or not.

Devon Collins-Wrenn

when it's a corner like that, light will always pour in... just saying

@Devon: Um, since when? And which picture are you referring to?

Still present in 13w16a. Issue updated to reflect this.

38 more comments

Can confirm in 1.19.

Can confirm in 1.19.2.

Can confirm in 1.19.2.

[Mod] markderickson

@unknown: The issue is already marked as affected in 1.19.2. Thank you for the additional confirmation though! 🙂

Still in 1.21.8

Carl Lystad

muzikbike

(Unassigned)

Confirmed

Platform

Normal

Lighting, Rendering

lighting, mojang_internal_1, rendering, smooth-lighting, smooth-lighting-interpolation-incorrect

Minecraft 1.5.1, Snapshot 13w16a, Minecraft 1.5.2, Snapshot 13w19a, Snapshot 13w21a, ..., 1.20.4, 23w51b, 1.21.1, 24w35a, 24w38a

Retrieved