From 48ae8597f6d39a4fad3e77ad69c414706048456b Mon Sep 17 00:00:00 2001 From: NULL511 Date: Sun, 5 May 2024 00:12:36 -0400 Subject: [PATCH] floodfill player occluder fix --- shaders/world0/shadow.vsh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/shaders/world0/shadow.vsh b/shaders/world0/shadow.vsh index c1cb0bf..1d08937 100644 --- a/shaders/world0/shadow.vsh +++ b/shaders/world0/shadow.vsh @@ -213,9 +213,12 @@ void main() { uint voxelId = 0u; if (currentRenderedItemId > 0) { - // TODO: once hand-light is added, switch to this condition - // if (entityId != ENTITY_ITEM_FRAME && entityId != ENTITY_PLAYER) - if (entityId != ENTITY_ITEM_FRAME) + if (entityId == ENTITY_PLAYER) { + // TODO: remove once hand-light is added + if (currentRenderedItemId < 1000) + voxelId = uint(currentRenderedItemId); + } + else if (entityId != ENTITY_ITEM_FRAME) voxelId = uint(currentRenderedItemId); } else {