From 825c1b7f1c03eaf2eb2a297d6b0a32e8f43b0fd2 Mon Sep 17 00:00:00 2001 From: NULL511 Date: Mon, 17 Jun 2024 15:25:10 -0400 Subject: [PATCH] fix false voxels with block entity --- shaders/lib/voxel_write.glsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/lib/voxel_write.glsl b/shaders/lib/voxel_write.glsl index 6b08eb5..70f2bd7 100644 --- a/shaders/lib/voxel_write.glsl +++ b/shaders/lib/voxel_write.glsl @@ -32,7 +32,7 @@ void PopulateShadowVoxel(const in vec3 playerPos) { ((renderStage == MC_RENDER_STAGE_ENTITIES && (currentRenderedItemId > 0 || entityId > 0)) || renderStage == MC_RENDER_STAGE_BLOCK_ENTITIES) ) { if (renderStage == MC_RENDER_STAGE_BLOCK_ENTITIES) { - if (blockEntityId > 0) + if (blockEntityId > 0 && blockEntityId < 1000) voxelId = uint(blockEntityId); } else if (currentRenderedItemId > 0 && currentRenderedItemId < 1000) {