variable normal offset strength; misc fixes

This commit is contained in:
NULL511
2024-05-04 23:55:14 -04:00
parent 75e7402cc2
commit 68f029d8c3
8 changed files with 713 additions and 15 deletions

View File

@ -210,9 +210,11 @@ void main() {
(currentRenderedItemId > 0 || entityId > 0) &&
(renderStage == MC_RENDER_STAGE_BLOCK_ENTITIES || renderStage == MC_RENDER_STAGE_ENTITIES)
) {
uint voxelId = uint(BLOCK_EMPTY);
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)
voxelId = uint(currentRenderedItemId);
}