Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-187130

Several blocks render incorrectly with point lights in Deferred Lighting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.21.60.21 Preview, 1.21.50.26 Preview, 1.21.40.23 Preview
    • Community Consensus
    • Windows

      Some blocks that don't use a full block geometry may stop rendering correctly if they have point light enabled.

      I discovered this issue with Glow Lichen and Amethyst Clusters.
      To demonstrate, I have a glow lichen and amethyst cluster with full PBR textures and without point lights, they render correctly:

      But once you enable point lights for them via global.json, the textures stop rendering correctly, amethyst displays incorrectly from certain angles, while glow lichen is completely missing its texture with the point light hovering over it.

       

      Steps to re-produce:
      1. Create a resource pack and enable point lights for the following blocks IDs: 
      "minecraft:glow_lichen"
      "minecraft:amethyst_cluster"
      "minecraft:large_amethyst_bud"
      "minecraft:medium_amethyst_bud"
      "minecraft:small_amethyst_bud"
      Or you can use the global.json file I've provided in attachments, can be used with the current 1.21.40.23 preview by placing it in the root directory of a PBR-capable resource pack in a point_lights folder.

      2. Place the blocks down in world and observe.

      Expected results:
      Blocks should render their textures correctly from all sides

      Observed results:
      Block textures will not render correctly as demonstrated earlier.

      Notes:
      This bug may apply to more blocks, I've only discovered it with glow lichen and amethyst clusters for the time being.

      Glow lichen's point light is also floating too far away from the texture's plane, it would be a good idea to have hard-coded adjustments in place for some vanilla blocks such as glow lichen.
      Ideally, the point light should be closer to texture's actual surface instead of hovering roughly half a block above it.

        1. Example_pack(amethyst).mcpack
          1 kB
          Sr_Spangblop
        2. global.json
          0.3 kB
          Cubeir
        3. point light.jpg
          313 kB
          Cubeir
        4. point light disabled.jpg
          247 kB
          Cubeir
        5. point light - side.jpg
          204 kB
          Cubeir
        6. point light side - 2.jpg
          284 kB
          Cubeir
        7. Redstone torch top.jpg
          365 kB
          Sr_Spangblop

            CubeIR Cubeir
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: