Merge pull request #251 from Null-MC/floodfill.add-rails-banners

FloodFill Rails & Banners
This commit is contained in:
Xonk 2024-07-21 16:09:54 -04:00 committed by GitHub
commit 7f23877af4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 238 additions and 228 deletions

File diff suppressed because one or more lines are too long

View File

@ -62,6 +62,10 @@ void main() {
uint mixMask = 0xFFFF;
vec3 tintColor = vec3(1.0);
if (blockId == BLOCK_SSS_WEAK || blockId == BLOCK_SSS_WEAK_3) {
mixWeight = 1.0;
}
switch (blockId) {
case BLOCK_WATER:
mixWeight = 0.8;
@ -917,7 +921,16 @@ void main() {
// LPV shapes
case BLOCK_LPV_IGNORE:
mixWeight = 1.0;
mixWeight = 1.00;
break;
case BLOCK_LPV_MIN:
mixWeight = 0.75;
break;
case BLOCK_LPV_MED:
mixWeight = 0.50;
break;
case BLOCK_LPV_MAX:
mixWeight = 0.25;
break;
case BLOCK_CARPET:
@ -942,16 +955,6 @@ void main() {
mixWeight = 0.8;
break;
case BLOCK_FENCE:
case BLOCK_FENCE_GATE:
mixWeight = 0.7;
break;
case BLOCK_FLOWER_POT:
mixWeight = 0.7;
break;
case BLOCK_IRON_BARS:
mixWeight = 0.6;
break;
case BLOCK_PRESSURE_PLATE:
mixMask = BuildLpvMask(1u, 1u, 1u, 1u, 1u, 0u);
mixWeight = 0.9;

View File

@ -6,9 +6,13 @@
#define BLOCK_SAPLING 15
#define BLOCK_VINE 16
#define BLOCK_VINE_OTHER 17
#define BLOCK_GROUND_WAVING 60
#define BLOCK_GROUND_WAVING_VERTICAL 61
#define BLOCK_AIR_WAVING 62
#define BLOCK_LPV_IGNORE 50
#define BLOCK_LPV_MIN 51
#define BLOCK_LPV_MED 52
#define BLOCK_LPV_MAX 53
#define BLOCK_GROUND_WAVING 54
#define BLOCK_GROUND_WAVING_VERTICAL 55
#define BLOCK_AIR_WAVING 56
#define BLOCK_SSS_STRONG 80
#define BLOCK_SSS_WEAK 81
#define BLOCK_SSS_WEAK_2 82
@ -199,84 +203,79 @@
#define BLOCK_ICE 319
#define BLOCK_NETHER_PORTAL 320
#define BLOCK_SLIME 321
#define BLOCK_LPV_IGNORE 401
#define BLOCK_CARPET 402
#define BLOCK_DOOR_N 403
#define BLOCK_DOOR_E 404
#define BLOCK_DOOR_S 405
#define BLOCK_DOOR_W 406
#define BLOCK_FENCE 407
#define BLOCK_FENCE_GATE 408
#define BLOCK_FLOWER_POT 409
#define BLOCK_IRON_BARS 410
#define BLOCK_PRESSURE_PLATE 411
#define BLOCK_SLAB_TOP 412
#define BLOCK_SLAB_BOTTOM 413
#define BLOCK_SNOW_LAYERS 414
#define BLOCK_TRAPDOOR_BOTTOM 415
#define BLOCK_TRAPDOOR_TOP 416
#define BLOCK_TRAPDOOR_N 417
#define BLOCK_TRAPDOOR_E 418
#define BLOCK_TRAPDOOR_S 419
#define BLOCK_TRAPDOOR_W 420
#define BLOCK_WALL_POST 421
#define BLOCK_WALL_MIN 421
#define BLOCK_WALL_POST_LOW_N 422
#define BLOCK_WALL_POST_LOW_E 423
#define BLOCK_WALL_POST_LOW_S 424
#define BLOCK_WALL_POST_LOW_W 425
#define BLOCK_WALL_POST_LOW_N_S 426
#define BLOCK_WALL_POST_LOW_W_E 427
#define BLOCK_WALL_POST_LOW_N_W 428
#define BLOCK_WALL_POST_LOW_N_E 429
#define BLOCK_WALL_POST_LOW_S_W 430
#define BLOCK_WALL_POST_LOW_S_E 431
#define BLOCK_WALL_POST_LOW_N_W_S 432
#define BLOCK_WALL_POST_LOW_N_E_S 433
#define BLOCK_WALL_POST_LOW_W_N_E 434
#define BLOCK_WALL_POST_LOW_W_S_E 435
#define BLOCK_WALL_POST_LOW_ALL 436
#define BLOCK_WALL_POST_TALL_N 437
#define BLOCK_WALL_POST_TALL_E 438
#define BLOCK_WALL_POST_TALL_S 439
#define BLOCK_WALL_POST_TALL_W 440
#define BLOCK_WALL_POST_TALL_N_S 441
#define BLOCK_WALL_POST_TALL_W_E 442
#define BLOCK_WALL_POST_TALL_N_W 443
#define BLOCK_WALL_POST_TALL_N_E 444
#define BLOCK_WALL_POST_TALL_S_W 445
#define BLOCK_WALL_POST_TALL_S_E 446
#define BLOCK_WALL_POST_TALL_N_W_S 447
#define BLOCK_WALL_POST_TALL_N_E_S 448
#define BLOCK_WALL_POST_TALL_W_N_E 449
#define BLOCK_WALL_POST_TALL_W_S_E 450
#define BLOCK_WALL_POST_TALL_ALL 451
#define BLOCK_WALL_POST_TALL_N_LOW_S 452
#define BLOCK_WALL_POST_TALL_E_LOW_W 453
#define BLOCK_WALL_POST_TALL_S_LOW_N 454
#define BLOCK_WALL_POST_TALL_W_LOW_E 455
#define BLOCK_WALL_POST_TALL_N_S_LOW_W_E 456
#define BLOCK_WALL_POST_TALL_W_E_LOW_N_S 457
#define BLOCK_WALL_POST_TALL_N_W_LOW_S_E 458
#define BLOCK_WALL_POST_TALL_N_E_LOW_S_W 459
#define BLOCK_WALL_POST_TALL_S_W_LOW_N_E 460
#define BLOCK_WALL_POST_TALL_S_E_LOW_N_W 461
#define BLOCK_WALL_LOW_N_S 462
#define BLOCK_WALL_LOW_W_E 463
#define BLOCK_WALL_LOW_N_W 464
#define BLOCK_WALL_LOW_N_E 465
#define BLOCK_WALL_LOW_S_W 466
#define BLOCK_WALL_LOW_S_E 467
#define BLOCK_WALL_LOW_ALL 468
#define BLOCK_WALL_TALL_N_S 469
#define BLOCK_WALL_TALL_W_E 470
#define BLOCK_WALL_TALL_N_W 471
#define BLOCK_WALL_TALL_N_E 472
#define BLOCK_WALL_TALL_S_W 473
#define BLOCK_WALL_TALL_S_E 474
#define BLOCK_WALL_TALL_ALL 475
#define BLOCK_WALL_TALL_N_S_LOW_W_E 476
#define BLOCK_WALL_TALL_W_E_LOW_N_S 477
#define BLOCK_WALL_MAX 477
#define BLOCK_CARPET 401
#define BLOCK_DOOR_N 402
#define BLOCK_DOOR_E 403
#define BLOCK_DOOR_S 404
#define BLOCK_DOOR_W 405
#define BLOCK_PRESSURE_PLATE 406
#define BLOCK_SLAB_TOP 407
#define BLOCK_SLAB_BOTTOM 408
#define BLOCK_SNOW_LAYERS 409
#define BLOCK_TRAPDOOR_BOTTOM 410
#define BLOCK_TRAPDOOR_TOP 411
#define BLOCK_TRAPDOOR_N 412
#define BLOCK_TRAPDOOR_E 413
#define BLOCK_TRAPDOOR_S 414
#define BLOCK_TRAPDOOR_W 415
#define BLOCK_WALL_POST 416
#define BLOCK_WALL_MIN 416
#define BLOCK_WALL_POST_LOW_N 417
#define BLOCK_WALL_POST_LOW_E 418
#define BLOCK_WALL_POST_LOW_S 419
#define BLOCK_WALL_POST_LOW_W 420
#define BLOCK_WALL_POST_LOW_N_S 421
#define BLOCK_WALL_POST_LOW_W_E 422
#define BLOCK_WALL_POST_LOW_N_W 423
#define BLOCK_WALL_POST_LOW_N_E 424
#define BLOCK_WALL_POST_LOW_S_W 425
#define BLOCK_WALL_POST_LOW_S_E 426
#define BLOCK_WALL_POST_LOW_N_W_S 427
#define BLOCK_WALL_POST_LOW_N_E_S 428
#define BLOCK_WALL_POST_LOW_W_N_E 429
#define BLOCK_WALL_POST_LOW_W_S_E 430
#define BLOCK_WALL_POST_LOW_ALL 431
#define BLOCK_WALL_POST_TALL_N 432
#define BLOCK_WALL_POST_TALL_E 433
#define BLOCK_WALL_POST_TALL_S 434
#define BLOCK_WALL_POST_TALL_W 435
#define BLOCK_WALL_POST_TALL_N_S 436
#define BLOCK_WALL_POST_TALL_W_E 437
#define BLOCK_WALL_POST_TALL_N_W 438
#define BLOCK_WALL_POST_TALL_N_E 439
#define BLOCK_WALL_POST_TALL_S_W 440
#define BLOCK_WALL_POST_TALL_S_E 441
#define BLOCK_WALL_POST_TALL_N_W_S 442
#define BLOCK_WALL_POST_TALL_N_E_S 443
#define BLOCK_WALL_POST_TALL_W_N_E 444
#define BLOCK_WALL_POST_TALL_W_S_E 445
#define BLOCK_WALL_POST_TALL_ALL 446
#define BLOCK_WALL_POST_TALL_N_LOW_S 447
#define BLOCK_WALL_POST_TALL_E_LOW_W 448
#define BLOCK_WALL_POST_TALL_S_LOW_N 449
#define BLOCK_WALL_POST_TALL_W_LOW_E 450
#define BLOCK_WALL_POST_TALL_N_S_LOW_W_E 451
#define BLOCK_WALL_POST_TALL_W_E_LOW_N_S 452
#define BLOCK_WALL_POST_TALL_N_W_LOW_S_E 453
#define BLOCK_WALL_POST_TALL_N_E_LOW_S_W 454
#define BLOCK_WALL_POST_TALL_S_W_LOW_N_E 455
#define BLOCK_WALL_POST_TALL_S_E_LOW_N_W 456
#define BLOCK_WALL_LOW_N_S 457
#define BLOCK_WALL_LOW_W_E 458
#define BLOCK_WALL_LOW_N_W 459
#define BLOCK_WALL_LOW_N_E 460
#define BLOCK_WALL_LOW_S_W 461
#define BLOCK_WALL_LOW_S_E 462
#define BLOCK_WALL_LOW_ALL 463
#define BLOCK_WALL_TALL_N_S 464
#define BLOCK_WALL_TALL_W_E 465
#define BLOCK_WALL_TALL_N_W 466
#define BLOCK_WALL_TALL_N_E 467
#define BLOCK_WALL_TALL_S_W 468
#define BLOCK_WALL_TALL_S_E 469
#define BLOCK_WALL_TALL_ALL 470
#define BLOCK_WALL_TALL_N_S_LOW_W_E 471
#define BLOCK_WALL_TALL_W_E_LOW_N_S 472
#define BLOCK_WALL_MAX 472
#define BLOCK_END_PORTAL 500
#define BLOCK_SIGN 501

View File

@ -38,8 +38,13 @@ void PopulateShadowVoxel(const in vec3 playerPos) {
voxelId = uint(blockEntityId);
}
else if (currentRenderedItemId > 0 && currentRenderedItemId < 1200) {
if (entityId != ENTITY_ITEM_FRAME && entityId != ENTITY_PLAYER)
voxelId = uint(currentRenderedItemId);
if (entityId != ENTITY_ITEM_FRAME && entityId != ENTITY_PLAYER) {
uint blockDataR = texelFetch(texBlockData, currentRenderedItemId, 0).r;
float lightRange = unpackUnorm4x8(blockDataR).a * 255.0;
if (lightRange > 0.0)
voxelId = uint(currentRenderedItemId);
}
}
else {
switch (entityId) {

View File

@ -1,5 +1,6 @@
layer.translucent = minecraft:glass minecraft:glass_pane
#= BLOCK_WATER
block.8 = minecraft:water minecraft:flowing_water
@ -27,12 +28,36 @@ block.*= vine
block.*= minecraft:hanging_roots minecraft:weeping_vines minecraft:cave_vines:berries=false
####### ----- FloodFill ----- #######
group.candle= candle black_candle blue_candle brown_candle cyan_candle gray_candle green_candle light_blue_candle light_gray_candle lime_candle magenta_candle orange_candle pink_candle purple_candle red_candle white_candle yellow_candle
group.supplementaries_candle= supplementaries:candle_holder supplementaries:candle_holder_black supplementaries:candle_holder_blue supplementaries:candle_holder_brown supplementaries:candle_holder_cyan supplementaries:candle_holder_gray supplementaries:candle_holder_green supplementaries:candle_holder_light_blue supplementaries:candle_holder_light_gray supplementaries:candle_holder_lime supplementaries:candle_holder_magenta supplementaries:candle_holder_orange supplementaries:candle_holder_pink supplementaries:candle_holder_purple supplementaries:candle_holder_red supplementaries:candle_holder_white supplementaries:candle_holder_yellow
# Blocks for FloodFill to ignore
#= BLOCK_LPV_IGNORE
block.50= chain ladder lever lightning_rod scaffolding tripwire tripwire_hook [candle]:lit=false acacia_button bamboo_button birch_button cherry_button crimson_button dark_oak_button jungle_button mangrove_button oak_button polished_blackstone_button spruce_button stone_button warped_button rail activator_rail detector_rail powered_rail:powered=false \
[supplementaries_candle]:lit=false
# Blocks that occlude 25% of light
#= BLOCK_LPV_MIN
block.*= acacia_fence bamboo_fence birch_fence cherry_fence crimson_fence dark_oak_fence jungle_fence mangrove_fence nether_brick_fence oak_fence spruce_fence warped_fence acacia_fence_gate bamboo_fence_gate birch_fence_gate cherry_fence_gate crimson_fence_gate dark_oak_fence_gate jungle_fence_gate mangrove_fence_gate oak_fence_gate spruce_fence_gate warped_fence_gate flower_pot potted_acacia_sapling potted_allium potted_azalea_bush potted_bamboo potted_azure_bluet potted_birch_sapling potted_blue_orchid potted_brown_mushroom potted_cactus potted_cornflower potted_crimson_fungus potted_crimson_roots potted_dandelion potted_dark_oak_sapling potted_dead_bush potted_fern potted_flowering_azalea_bush potted_jungle_sapling potted_lily_of_the_valley potted_mangrove_propagule potted_oak_sapling potted_orange_tulip potted_oxeye_daisy potted_pink_tulip potted_poppy potted_red_mushroom potted_red_tulip potted_spruce_sapling potted_torchflower potted_warped_fungus potted_warped_roots potted_white_tulip potted_wither_rose
# Blocks that occlude 50% of light
#= BLOCK_LPV_MED
block.*= iron_bars pointed_dripstone
# Blocks that occlude 75% of light
#= BLOCK_LPV_MAX
block.*=
####### ----- waving blocks with SSS ----- #######
## ground waving
## add a newline to organize for modded blocks
#= BLOCK_GROUND_WAVING
block.60= minecraft:melon_stem minecraft:pumpkin_stem minecraft:flowering_azalea minecraft:azalea minecraft:big_dripleaf minecraft:torchflower minecraft:torchflower_crop minecraft:pitcher_crop:half=upper minecraft:warped_fungus minecraft:twisting_vines minecraft:pink_petals minecraft:kelp minecraft:beetroots minecraft:potatoes minecraft:carrots minecraft:wheat minecraft:nether_wart minecraft:crimson_roots minecraft:nether_sprouts minecraft:warped_roots minecraft:seagrass minecraft:wither_rose minecraft:lily_of_the_valley minecraft:cornflower minecraft:sweet_berry_bush minecraft:oxeye_daisy minecraft:pink_tulip minecraft:white_tulip minecraft:orange_tulip minecraft:red_tulip minecraft:azure_bluet minecraft:allium minecraft:blue_orchid minecraft:poppy minecraft:dandelion minecraft:dead_bush
block.*= minecraft:melon_stem minecraft:pumpkin_stem minecraft:flowering_azalea minecraft:azalea minecraft:big_dripleaf minecraft:torchflower minecraft:torchflower_crop minecraft:pitcher_crop:half=upper minecraft:warped_fungus minecraft:twisting_vines minecraft:pink_petals minecraft:kelp minecraft:beetroots minecraft:potatoes minecraft:carrots minecraft:wheat minecraft:nether_wart minecraft:crimson_roots minecraft:nether_sprouts minecraft:warped_roots minecraft:seagrass minecraft:wither_rose minecraft:lily_of_the_valley minecraft:cornflower minecraft:sweet_berry_bush minecraft:oxeye_daisy minecraft:pink_tulip minecraft:white_tulip minecraft:orange_tulip minecraft:red_tulip minecraft:azure_bluet minecraft:allium minecraft:blue_orchid minecraft:poppy minecraft:dandelion minecraft:dead_bush
## ground waving vertical models. this exists to brighten up the sides of grass and stuff in shaded places they blend in better with the world.
#= BLOCK_GROUND_WAVING_VERTICAL
@ -94,10 +119,6 @@ block.*= minecraft:hanging_roots minecraft:weeping_vines minecraft:cave_vines:be
#= BLOCK_BREWING_STAND
block.*= brewing_stand
group.candle= candle black_candle blue_candle brown_candle cyan_candle gray_candle green_candle light_blue_candle light_gray_candle lime_candle magenta_candle orange_candle pink_candle purple_candle red_candle white_candle yellow_candle
group.supplementaries_candle= supplementaries:candle_holder supplementaries:candle_holder_black supplementaries:candle_holder_blue supplementaries:candle_holder_brown supplementaries:candle_holder_cyan supplementaries:candle_holder_gray supplementaries:candle_holder_green supplementaries:candle_holder_light_blue supplementaries:candle_holder_light_gray supplementaries:candle_holder_lime supplementaries:candle_holder_magenta supplementaries:candle_holder_orange supplementaries:candle_holder_pink supplementaries:candle_holder_purple supplementaries:candle_holder_red supplementaries:candle_holder_white supplementaries:candle_holder_yellow
#ifdef LPV_COLORED_CANDLES
#= BLOCK_CANDLES_PLAIN_LIT_1
block.*= candle:candles=1:lit=true \
@ -733,11 +754,8 @@ block.*= minecraft:hanging_roots minecraft:weeping_vines minecraft:cave_vines:be
####### ----- LPV shapes ----- #######
#= BLOCK_LPV_IGNORE
block.401= chain ladder lever tripwire tripwire_hook [candle]:lit=false [supplementaries_candle]:lit=false acacia_button bamboo_button birch_button cherry_button crimson_button dark_oak_button jungle_button mangrove_button oak_button polished_blackstone_button spruce_button stone_button warped_button scaffolding
#= BLOCK_CARPET
block.*=wool_carpets black_carpet blue_carpet brown_carpet cyan_carpet gray_carpet green_carpet light_blue_carpet light_gray_carpet lime_carpet magenta_carpet moss_carpet orange_carpet pink_carpet purple_carpet red_carpet white_carpet yellow_carpet
block.401=wool_carpets black_carpet blue_carpet brown_carpet cyan_carpet gray_carpet green_carpet light_blue_carpet light_gray_carpet lime_carpet magenta_carpet moss_carpet orange_carpet pink_carpet purple_carpet red_carpet white_carpet yellow_carpet
group.door= acacia_door bamboo_door birch_door cherry_door crimson_door dark_oak_door iron_door jungle_door mangrove_door oak_door spruce_door warped_door copper_door exposed_copper_door weathered_copper_door oxidized_copper_door waxed_copper_door waxed_exposed_copper_door waxed_weathered_copper_door waxed_oxidized_copper_door
@ -753,38 +771,10 @@ block.*= minecraft:hanging_roots minecraft:weeping_vines minecraft:cave_vines:be
#= BLOCK_DOOR_W
block.*= [door]:facing=west:open=false [door]:facing=south:hinge=left:open=true [door]:facing=north:hinge=right:open=true
#= BLOCK_FENCE
block.*= acacia_fence bamboo_fence birch_fence cherry_fence crimson_fence dark_oak_fence jungle_fence mangrove_fence nether_brick_fence oak_fence spruce_fence warped_fence
#= BLOCK_FENCE_GATE
block.*= acacia_fence_gate bamboo_fence_gate birch_fence_gate cherry_fence_gate crimson_fence_gate dark_oak_fence_gate jungle_fence_gate mangrove_fence_gate oak_fence_gate spruce_fence_gate warped_fence_gate
#= BLOCK_FLOWER_POT
block.*= flower_pot potted_acacia_sapling potted_allium potted_azalea_bush potted_bamboo potted_azure_bluet potted_birch_sapling \
potted_blue_orchid potted_brown_mushroom potted_cactus potted_cornflower potted_crimson_fungus potted_crimson_roots \
potted_dandelion potted_dark_oak_sapling potted_dead_bush potted_fern potted_flowering_azalea_bush potted_jungle_sapling \
potted_lily_of_the_valley potted_mangrove_propagule potted_oak_sapling potted_orange_tulip potted_oxeye_daisy \
potted_pink_tulip potted_poppy potted_red_mushroom potted_red_tulip potted_spruce_sapling potted_torchflower \
potted_warped_fungus potted_warped_roots potted_white_tulip potted_wither_rose
#= BLOCK_IRON_BARS
block.*= iron_bars
#= BLOCK_PRESSURE_PLATE
block.*= acacia_pressure_plate bamboo_pressure_plate birch_pressure_plate cherry_pressure_plate crimson_pressure_plate \
dark_oak_pressure_plate heavy_weighted_pressure_plate jungle_pressure_plate light_weighted_pressure_plate mangrove_pressure_plate \
oak_pressure_plate polished_blackstone_pressure_plate spruce_pressure_plate stone_pressure_plate warped_pressure_plate
block.*= acacia_pressure_plate bamboo_pressure_plate birch_pressure_plate cherry_pressure_plate crimson_pressure_plate dark_oak_pressure_plate heavy_weighted_pressure_plate jungle_pressure_plate light_weighted_pressure_plate mangrove_pressure_plate oak_pressure_plate polished_blackstone_pressure_plate spruce_pressure_plate stone_pressure_plate warped_pressure_plate
group.slab= acacia_slab bamboo_slab bamboo_mosaic_slab birch_slab cherry_slab crimson_slab dark_oak_slab jungle_slab mangrove_slab \
oak_slab spruce_slab warped_slab andesite_slab blackstone_slab brick_slab cobbled_deepslate_slab cobblestone_slab \
cut_copper_slab cut_red_sandstone_slab cut_sandstone_slab dark_prismarine_slab deepslate_brick_slab deepslate_tile_slab \
diorite_slab end_stone_brick_slab exposed_cut_copper_slab granite_slab mossy_cobblestone_slab mossy_stone_brick_slab \
mud_brick_slab nether_brick_slab oxidized_cut_copper_slab petrified_oak_slab polished_andesite_slab \
polished_blackstone_brick_slab polished_blackstone_slab polished_deepslate_slab polished_diorite_slab \
polished_granite_slab prismarine_brick_slab prismarine_slab purpur_slab quartz_slab red_nether_brick_slab \
red_sandstone_slab sandstone_slab smooth_quartz_slab smooth_red_sandstone_slab smooth_sandstone_slab smooth_stone_slab \
stone_brick_slab stone_slab waxed_cut_copper_slab waxed_exposed_cut_copper_slab waxed_oxidized_cut_copper_slab \
waxed_weathered_cut_copper_slab weathered_cut_copper_slab
group.slab= acacia_slab bamboo_slab bamboo_mosaic_slab birch_slab cherry_slab crimson_slab dark_oak_slab jungle_slab mangrove_slab oak_slab spruce_slab warped_slab andesite_slab blackstone_slab brick_slab cobbled_deepslate_slab cobblestone_slab cut_copper_slab cut_red_sandstone_slab cut_sandstone_slab dark_prismarine_slab deepslate_brick_slab deepslate_tile_slab diorite_slab end_stone_brick_slab exposed_cut_copper_slab granite_slab mossy_cobblestone_slab mossy_stone_brick_slab mud_brick_slab nether_brick_slab oxidized_cut_copper_slab petrified_oak_slab polished_andesite_slab polished_blackstone_brick_slab polished_blackstone_slab polished_deepslate_slab polished_diorite_slab polished_granite_slab prismarine_brick_slab prismarine_slab purpur_slab quartz_slab red_nether_brick_slab red_sandstone_slab sandstone_slab smooth_quartz_slab smooth_red_sandstone_slab smooth_sandstone_slab smooth_stone_slab stone_brick_slab stone_slab waxed_cut_copper_slab waxed_exposed_cut_copper_slab waxed_oxidized_cut_copper_slab waxed_weathered_cut_copper_slab weathered_cut_copper_slab
#= BLOCK_SLAB_TOP
block.*= [slab]:type=top

View File

@ -23,6 +23,10 @@ Read the terms of modification and sharing before changing something below pleas
#endif
attribute vec3 vaPosition;
#ifdef LPV_ENTITY_LIGHTS
uniform usampler1D texBlockData;
#endif
uniform mat4 shadowModelViewInverse;
uniform int renderStage;

View File

@ -59,6 +59,11 @@ uniform int entityId;
#else
attribute vec3 at_midBlock;
#endif
#ifdef LPV_ENTITY_LIGHTS
uniform usampler1D texBlockData;
#endif
uniform int currentRenderedItemId;
uniform int renderStage;

View File

@ -23,6 +23,10 @@ Read the terms of modification and sharing before changing something below pleas
#endif
attribute vec3 vaPosition;
#ifdef LPV_ENTITY_LIGHTS
uniform usampler1D texBlockData;
#endif
uniform mat4 shadowModelViewInverse;
uniform int renderStage;