Skip to content

Commit

Permalink
Added abilility to filter by texture indices in instance generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylann committed Nov 30, 2024
1 parent 13aa93e commit 88bbfd4
Show file tree
Hide file tree
Showing 4 changed files with 243 additions and 15 deletions.
1 change: 1 addition & 0 deletions doc/source/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Primarily developped with Godot 4.3.
- `VoxelBlockyModelCube`: Added support for mesh rotation like `VoxelBlockyMesh` (prior to that, rotation buttons in the editor only swapped tiles around)
- `VoxelInstanceGenerator`: Added `OnePerTriangle` emission mode
- `VoxelToolLodTerrain`: Implemented raycast when the mesher is `VoxelMesherBlocky` or `VoxelMesherCubes`
- `VoxelInstanceGenerator`: Added ability to filter spawning by voxel texture indices, when using `VoxelMesherTransvoxel` with `texturing_mode` set to `4-blend over 16 textures`

- Fixes
- Fixed potential deadlock when using detail rendering and various editing features (thanks to lenesxy, issue #693)
Expand Down
2 changes: 2 additions & 0 deletions meshers/blocky/voxel_blocky_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,8 @@ void VoxelBlockyModel::_bind_methods() {
"get_collision_aabbs"
);
ADD_PROPERTY(
// TODO This collision mask might not actually be related to Godot standard physics.
// It is mostly used in voxel raycasts, box collision and maybe other things
PropertyInfo(Variant::INT, "collision_mask", PROPERTY_HINT_LAYERS_3D_PHYSICS),
"set_collision_mask",
"get_collision_mask"
Expand Down
Loading

0 comments on commit 88bbfd4

Please sign in to comment.