diff options
author | x2048 <codeforsmile@gmail.com> | 2022-04-02 10:42:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-02 10:42:27 +0200 |
commit | b0b9732359d43325c8bd820abeb8417353365a0c (patch) | |
tree | 3de2c5a55f67ee142a9f2a1b95c2b47b6d881c54 /src/defaultsettings.cpp | |
parent | 26c046a563f686f9309055f5d566a92d436eed7e (diff) | |
download | minetest-b0b9732359d43325c8bd820abeb8417353365a0c.tar.gz minetest-b0b9732359d43325c8bd820abeb8417353365a0c.tar.bz2 minetest-b0b9732359d43325c8bd820abeb8417353365a0c.zip |
Add depth sorting for node faces (#11696)
Use BSP tree to order transparent triangles
https://en.wikipedia.org/wiki/Binary_space_partitioning
Diffstat (limited to 'src/defaultsettings.cpp')
-rw-r--r-- | src/defaultsettings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/defaultsettings.cpp b/src/defaultsettings.cpp index 2e9a19199..b86287157 100644 --- a/src/defaultsettings.cpp +++ b/src/defaultsettings.cpp @@ -244,6 +244,7 @@ void set_default_settings() settings->setDefault("enable_particles", "true"); settings->setDefault("arm_inertia", "true"); settings->setDefault("show_nametag_backgrounds", "true"); + settings->setDefault("transparency_sorting_distance", "16"); settings->setDefault("enable_minimap", "true"); settings->setDefault("minimap_shape_round", "true"); |