faster floodfill sampling in rgb not hsv

This commit is contained in:
NULL511
2024-06-18 22:23:29 -04:00
parent ccf5ebd5d4
commit 41b2f443d9
3 changed files with 108 additions and 135 deletions

View File

@ -33,8 +33,6 @@ void PopulateShadowVoxel(const in vec3 playerPos) {
if (
((renderStage == MC_RENDER_STAGE_ENTITIES && (currentRenderedItemId > 0 || entityId > 0)) || renderStage == MC_RENDER_STAGE_BLOCK_ENTITIES)
) {
voxelId = uint(mc_Entity.x + 0.5);
if (renderStage == MC_RENDER_STAGE_BLOCK_ENTITIES) {
if (blockEntityId > 0 && blockEntityId < 500)
voxelId = uint(blockEntityId);