mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
aabb block shape WIP + common refactor
This commit is contained in:
parent
73d87ae451
commit
0c35eeb072
21 changed files with 177 additions and 76 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue