maruohon / minihud

A client-side Minecraft mod with configurable "info lines" ("mini-F3") and various overlays, such as light level and structure bounding boxes
GNU Lesser General Public License v3.0
422 stars 124 forks source link

Light Level Overlay Non-Solid Block Render Issue #313

Open emirhanpisgin opened 1 year ago

emirhanpisgin commented 1 year ago

Light Overlay rendered inside the non-solid blocks even if they have blocks on top of them.

2023-08-09_03 35 31 (just to see im in the blocks)

2023-08-09_03 35 27

it is also happens with mud blocks, and 8 layer snow blocks

maruohon commented 1 year ago

It's just how it has been implemented, i.e. which checks the renderer does by default to decide where to render the overlay. Basically the default condition to prevent the overlay from rendering is a normal full opaque cube above, and soul sand is not such a block, so it allows it to render. It also renders inside bottom slabs for example, if the block below the slab has a spawnable top surface. The main reason for this is that the "proper" collision box checks are slightly slower per each block, and the renderer needs to check quite a few blocks each time it updates.

There are several light level related options in the Generic category which allow you to control this behavior, and I will also add at least one or two more in some upcoming version.