mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-22 17:18:39 +00:00
Improve default inventory+wield images of node drawtypes (#9299)
This commit is contained in:
parent
8ca602150d
commit
808fa5ecb3
6 changed files with 126 additions and 104 deletions
|
@ -425,6 +425,22 @@ struct ContentFeatures
|
|||
/*
|
||||
Some handy methods
|
||||
*/
|
||||
bool needsBackfaceCulling() const
|
||||
{
|
||||
switch (drawtype) {
|
||||
case NDT_TORCHLIKE:
|
||||
case NDT_SIGNLIKE:
|
||||
case NDT_FIRELIKE:
|
||||
case NDT_RAILLIKE:
|
||||
case NDT_PLANTLIKE:
|
||||
case NDT_PLANTLIKE_ROOTED:
|
||||
case NDT_MESH:
|
||||
return false;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
bool isLiquid() const{
|
||||
return (liquid_type != LIQUID_NONE);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue