implement new terrain generator, cave generator, tree generator, implement big tree generator, improve light update performance

This commit is contained in:
LabyStudio
2022-05-04 23:35:53 +02:00
parent b52a1385b3
commit d846613ca9
21 changed files with 1380 additions and 196 deletions
@@ -35,8 +35,12 @@ export default class Block {
return this.textureSlotId;
}
getTransparency() {
return 0.0;
}
isTransparent() {
return this.getOpacity() < 1.0;
return this.getTransparency() > 0.0;
}
shouldRenderFace(world, x, y, z, face) {