mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add optional framed glasslike drawtype
This commit is contained in:
parent
e9c9b66ae9
commit
f48f686930
9 changed files with 37 additions and 14 deletions
|
@ -607,6 +607,7 @@ public:
|
|||
|
||||
bool new_style_water = g_settings->getBool("new_style_water");
|
||||
bool new_style_leaves = g_settings->getBool("new_style_leaves");
|
||||
bool connected_glass = g_settings->getBool("connected_glass");
|
||||
bool opaque_water = g_settings->getBool("opaque_water");
|
||||
bool enable_shaders = g_settings->getBool("enable_shaders");
|
||||
bool enable_bumpmapping = g_settings->getBool("enable_bumpmapping");
|
||||
|
@ -666,6 +667,15 @@ public:
|
|||
f->solidness = 0;
|
||||
f->visual_solidness = 1;
|
||||
break;
|
||||
case NDT_GLASSLIKE_FRAMED_OPTIONAL:
|
||||
f->solidness = 0;
|
||||
f->visual_solidness = 1;
|
||||
if (connected_glass) {
|
||||
f->drawtype = NDT_GLASSLIKE_FRAMED;
|
||||
} else {
|
||||
f->drawtype = NDT_GLASSLIKE;
|
||||
}
|
||||
break;
|
||||
case NDT_ALLFACES:
|
||||
f->solidness = 0;
|
||||
f->visual_solidness = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue