diff options
| author | Wuzzy <wuzzy2@mail.ru> | 2020-07-23 19:54:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-23 19:54:58 +0200 |
| commit | 808fa5ecb3ddfd5d993000cc6b4c972257e182db (patch) | |
| tree | 73c18c4b64c55e8c72ecbe81afce08ab66430e85 /src/nodedef.h | |
| parent | 8ca602150d4fdce6dcc63fa13e22aeaac5b927cc (diff) | |
| download | dragonfireclient-808fa5ecb3ddfd5d993000cc6b4c972257e182db.tar.xz | |
Improve default inventory+wield images of node drawtypes (#9299)
Diffstat (limited to 'src/nodedef.h')
| -rw-r--r-- | src/nodedef.h | 16 |
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); } |
