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

Related issues

Attachments

Comments

migrated
[media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media][media]
migrated

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.

migrated

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

migrated

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

migrated
migrated

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

migrated

I am pretty sure this has happened since at least the update Maximum smooth lighting was added in.

Ezekiel

Is this still a concern in the current Minecraft version 1.7.4 / Launcher version 1.3.8 or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

migrated

@Ezekiel

This is still an issue with those versions, and in 14w02c it is even more of an issue. (I have not tested the other two snapshots)

migrated

Confirmed for 1.7.5 and 14w11b

migrated

I'm having a similar problem, but in a slightly different situation. If I'm inside a building with stone walls and a roof made of slabs, and no light sources inside, there is a little bit of light at the top of each wall. The slab roof covers the walls, so there is no "crack" for light to seep in through.
This only happens when the roof is made of slabs and only with Smooth Lighting turned on.
It still happens if I extend the walls upwards.
But it doesn't happen if I replace slabs near the edges with stone blocks.
Cross sectional view:
1234567 (roof)
#_____# (walls and empty space)
If blocks 2 and 6 are slabs, light leaks in. If they are stone blocks, light does not leak. The other numbered blocks don't matter; they can be either slabs or full blocks. Blocks 1 and 7 can even be air without changing the result.

migrated

Is this still a concern in the current Minecraft version 14w30c or later? If so, please update the affected versions in order to best aid Mojang ensuring bugs are still valid in the latest releases/pre-releases.

wobst.michael

Still an issue in 14w30c. Could reproduce it.

marcono1234

Confirmed for

  • 1.8.7 Has also a strange effect on piston heads (see screenshot)

Example command

/summon MinecartCommandBlock ~ ~1 ~ {Command:/setblock ~ ~-4 ~ redstone_block,Riding:{id:MinecartCommandBlock,Command:"/execute @p ~ ~ ~ /setblock ~-1 ~3 ~1 air",Riding:{id:MinecartCommandBlock,Command:"/execute @p ~ ~ ~ /setblock ~-1 ~2 ~1 stone
",Riding:{id:MinecartCommandBlock,Command:"/execute @p ~ ~ ~ /setblock ~1 ~1 ~1 redstone_block
",Riding:{id:MinecartCommandBlock,Command:"/execute @p ~ ~ ~ /setblock ~1 ~2 ~1 piston 4
",Riding:{id:MinecartCommandBlock,Command:"/tp @p ~ ~ ~ 0 0
",Riding:{id:MinecartCommandBlock,Command:"/execute @p ~ ~ ~ /fill ~-2 ~-1 ~-2 ~2 ~3 ~2 stone 0 hollow
",Riding:{id:MinecartCommandBlock,Command:"/tp @p ~ ~15 ~
",Riding:{id:MinecartCommandBlock,Riding:{id:FallingSand,Time:1,Block:activator_rail,Riding:{id:FallingSand,Time:1,Block:redstone_block,Riding:{id:FallingSand,Time:1,Block:stone,Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:/fill ~ ~-2 ~ ~ ~3 ~ air},Riding:{id:FallingSand,Time:1,Block:stone,Riding:{id:FallingSand,Time:1,Block:command_block,TileEntityData:{Command:/kill @e[type=MinecartCommandBlock,dy=6]}}}}}}}}}}}}}}}}
migrated

Is this still an issue in the latest snapshot 16w44a?

JUE13

Confirmed for 1.12-pre7

migrated

May or may not be a different problem, but I've noticed light completely passing through corners of opaque blocks. The area I'm in in NotDark.png and NotDark2.png has no light sources, and the grass/dirt is right next to open daylight, so the daylight is bleeding in. On 1.13-pre1, macOS.

kumasasa

@unknown, this is MC-129725

migrated

Confirmed for 1.13.1.

muzikbike

Affects 19w14b

migrated
[media]


I can still se leaking light in corners in 20w17a *if *Smooth Lighting is turned on.

migrated

Confirmed for 1.16 Pre-release 2. As @unknown said, the issue only takes place if "Smooth Lighting" is either set to "Minimum" or "Maximum". 

migrated

Confirmed in 1.16-pre4.

migrated

Confirmed in 1.16-pre7.

muzikbike

Affects 20w28a, can I request ownership? Original reporter is inactive

[Mod]Les3awe

@@unknown, completed.

migrated

Can confirm it's still a thing in 1.16.3

Avoma

Can confirm in 20w51a.

Avoma

Can confirm in 21w05b.

Avoma

Can confirm in 21w06a.

Avoma

Can confirm in 21w07a.

Avoma

Can confirm in 21w11a.

Avoma

Can confirm in 21w15a.

Avoma

Can confirm in 21w17a.

muzikbike

I can no longer reproduce this in 1.17-pre2.

Ezekiel

Likewise I cannot reproduce

Makzevu

This can be reproduced with stairs.

Avoma

This can indeed be reproduced with stairs. I've attached a screenshot. Can confirm in 1.17 Pre-release 2.

Makzevu

This might have to do with some of these blocks having light literally inside of them, as opposed to full blocks which cancel light.

Edit: ... and that these blocks don't create shadows → MC-139621.

muzikbike

Should the stairs case be reported separately?

Avoma

Can confirm in 1.17.

ampolive

Can confirm in 1.17.1.

ampolive

Can confirm in 21w37a.

Avoma

Can confirm in 1.18.2 and 22w19a.

Avoma

Can confirm in 1.19.

Avoma

Can confirm in 1.19.2.

migrated

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! 🙂

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