Skip to content

Commit

Permalink
Mention culls_neighbors in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
spazzylemons committed Sep 23, 2023
1 parent bb9772a commit 6492361
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/source/blocky_terrain.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,16 @@ Here, glass has `transparency_index=2`, and leaves have `transparency_index=1`:

![Screenshot of transparency index being exploited](images/transparency_index_example2.webp)

`VoxelBlockyModel` also has a `culls_neighbors` property. This is enabled by default and prevents unnecessary rendering of neighboring voxel sides. However, for some transparent voxels it may be more desirable to always render neighboring voxel sides. For example, foliage can be made to look denser if all of the inner voxel sides
are visible.

Here is a group of leaves with `culls_neighbors=true` (the default):

![Screenshot of leaves with culls_neighbors set to true](images/culls_neighbors_enabled.webp)

Here is that same group of leaves with `culls_neighbors=false`. The sides in-between the voxels are rendered, making the group of leaves look less hollow.

![Screenshot of leaves with culls_neighbors set to false](images/culls_neighbors_disabled.webp)

### Random tick

Expand Down
Binary file added doc/source/images/culls_neighbors_disabled.webp
Binary file not shown.
Binary file added doc/source/images/culls_neighbors_enabled.webp
Binary file not shown.

0 comments on commit 6492361

Please sign in to comment.