aabb block shape WIP + common refactor

This commit is contained in:
MihailRis
2023-11-30 14:48:38 +03:00
parent 73d87ae451
commit 0c35eeb072
21 changed files with 177 additions and 76 deletions
+12
View File
@@ -106,6 +106,18 @@ void setup_definitions(ContentBuilder* builder) {
block = new Block("base:blue_lamp", "blue_lamp");
block->emission[2] = 15;
builder->add(block);
// block added for test
block = new Block("base:pane", "pane");
block->textureFaces[FACE_MX] = "pane_side";
block->textureFaces[FACE_PX] = "pane_side";
block->textureFaces[FACE_MY] = "pane_side_2";
block->textureFaces[FACE_PY] = "pane_side_2";
block->model = BlockModel::aabb;
block->hitbox.scale(vec3(1.0f, 1.0f, 0.2f), vec3(0.5f, 0.5f, 0.0f));
block->lightPassing = true;
block->skyLightPassing = true;
builder->add(block);
}
void setup_bindings() {