use block.properties template

This commit is contained in:
NULL511
2024-05-03 13:39:05 -04:00
parent 2c383a7720
commit 8a923d8e6e
7 changed files with 244 additions and 166 deletions

View File

@ -1,7 +1,13 @@
#define BLOCK_EMPTY 0
#define BLOCK_WATER 8
#define BLOCK_GROUND_WAVING 10
#define BLOCK_AIR_WAVING 11
#define BLOCK_GROUND_WAVING_VERTICAL 12
#define BLOCK_SSS_STRONG 13
#define BLOCK_SSS_WEAK 14
#define BLOCK_SSS_WEAK_2 15
#define BLOCK_SSS_WEAK_3 16
#define BLOCK_SSS_WEIRD 17
#define BLOCK_GRASS 18
#define BLOCK_AMETHYST_BUD_LARGE 1001
#define BLOCK_AMETHYST_BUD_MEDIUM 1002
#define BLOCK_AMETHYST_CLUSTER 1003
@ -40,41 +46,36 @@
#define BLOCK_SOUL_LANTERN 1036
#define BLOCK_SOUL_TORCH 1037
#define BLOCK_TORCH 1038
#define BLOCK_GLASS 1201
#define BLOCK_HONEY 1202
#define BLOCK_ICE 1203
#define BLOCK_NETHER_PORTAL 1204
#define BLOCK_SLIME 1205
#define BLOCK_GLASS_BLACK 1220
#define BLOCK_GLASS_BLUE 1221
#define BLOCK_GLASS_BROWN 1222
#define BLOCK_GLASS_CYAN 1223
#define BLOCK_GLASS_GRAY 1224
#define BLOCK_GLASS_GREEN 1225
#define BLOCK_GLASS_LIGHT_BLUE 1226
#define BLOCK_GLASS_LIGHT_GRAY 1227
#define BLOCK_GLASS_LIME 1228
#define BLOCK_GLASS_MAGENTA 1229
#define BLOCK_GLASS_ORANGE 1230
#define BLOCK_GLASS_PINK 1231
#define BLOCK_GLASS_PURPLE 1232
#define BLOCK_GLASS_RED 1233
#define BLOCK_GLASS_WHITE 1234
#define BLOCK_GLASS_YELLOW 1235
#define BLOCK_DOOR_N 1301
#define BLOCK_DOOR_E 1302
#define BLOCK_DOOR_S 1303
#define BLOCK_DOOR_W 1304
#define BLOCK_SLAB_TOP 1305
#define BLOCK_SLAB_BOTTOM 1306
#define BLOCK_TRAPDOOR_BOTTOM 1307
#define BLOCK_TRAPDOOR_TOP 1308
#define BLOCK_TRAPDOOR_N 1309
#define BLOCK_TRAPDOOR_E 1310
#define BLOCK_TRAPDOOR_S 1311
#define BLOCK_TRAPDOOR_W 1312
#define BLOCK_GLASS_BLACK 1206
#define BLOCK_GLASS_BLUE 1207
#define BLOCK_GLASS_BROWN 1208
#define BLOCK_GLASS_CYAN 1209
#define BLOCK_GLASS_GRAY 1210
#define BLOCK_GLASS_GREEN 1211
#define BLOCK_GLASS_LIGHT_BLUE 1212
#define BLOCK_GLASS_LIGHT_GRAY 1213
#define BLOCK_GLASS_LIME 1214
#define BLOCK_GLASS_MAGENTA 1215
#define BLOCK_GLASS_ORANGE 1216
#define BLOCK_GLASS_PINK 1217
#define BLOCK_GLASS_PURPLE 1218
#define BLOCK_GLASS_RED 1219
#define BLOCK_GLASS_WHITE 1220
#define BLOCK_GLASS_YELLOW 1221
#define BLOCK_DOOR_N 1222
#define BLOCK_DOOR_E 1223
#define BLOCK_DOOR_S 1224
#define BLOCK_DOOR_W 1225
#define BLOCK_SLAB_TOP 1226
#define BLOCK_SLAB_BOTTOM 1227
#define BLOCK_TRAPDOOR_BOTTOM 1228
#define BLOCK_TRAPDOOR_TOP 1229
#define BLOCK_TRAPDOOR_N 1230
#define BLOCK_TRAPDOOR_E 1231
#define BLOCK_TRAPDOOR_S 1232
#define BLOCK_TRAPDOOR_W 1233

View File

@ -32,7 +32,7 @@
SpringCol *= glcolor;
// do leaf colors different because thats cool and i like it
if(mc_Entity.x == 10003){
if(mc_Entity.x == BLOCK_AIR_WAVING){
SummerCol = vec3(Summer_Leaf_R, Summer_Leaf_G, Summer_Leaf_B);
AutumnCol = vec3(Fall_Leaf_R, Fall_Leaf_G, Fall_Leaf_B);
WinterCol = vec3(Winter_Leaf_R, Winter_Leaf_G, Winter_Leaf_B);

View File

@ -4,3 +4,5 @@ const uint VoxelSize = uint(exp2(LPV_SIZE));
const uvec3 VoxelSize3 = uvec3(VoxelSize);
const float voxelDistance = 64.0;
#define BLOCK_EMPTY 0