summaryrefslogtreecommitdiff
path: root/src/nodedef.h
diff options
context:
space:
mode:
authorWuzzy <wuzzy2@mail.ru>2020-07-23 19:54:58 +0200
committerGitHub <noreply@github.com>2020-07-23 19:54:58 +0200
commit808fa5ecb3ddfd5d993000cc6b4c972257e182db (patch)
tree73c18c4b64c55e8c72ecbe81afce08ab66430e85 /src/nodedef.h
parent8ca602150d4fdce6dcc63fa13e22aeaac5b927cc (diff)
downloadminetest-808fa5ecb3ddfd5d993000cc6b4c972257e182db.tar.gz
minetest-808fa5ecb3ddfd5d993000cc6b4c972257e182db.tar.bz2
minetest-808fa5ecb3ddfd5d993000cc6b4c972257e182db.zip
Improve default inventory+wield images of node drawtypes (#9299)
Diffstat (limited to 'src/nodedef.h')
-rw-r--r--src/nodedef.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nodedef.h b/src/nodedef.h
index cf03abaae..ff52f976f 100644
--- a/src/nodedef.h
+++ b/src/nodedef.h
@@ -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);
}