mirror of
https://github.com/Merlin1809/Eclipse-Shader.git
synced 2026-10-11 17:58:20 +08:00
fix false voxels with block entity
This commit is contained in:
1 parent
d5a0c9ddfc
commit
825c1b7f1c
1 file changed
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user