From: sfan5 Date: Wed, 25 May 2022 17:00:34 +0000 (+0200) Subject: Map opaque waving leaves to allfaces drawtype X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=bccaf5fc2d11c31615d64b9bca91f908d06b7044;p=dragonfireclient.git Map opaque waving leaves to allfaces drawtype fixes #9842 --- diff --git a/src/nodedef.cpp b/src/nodedef.cpp index 922554a2c..9c85826c4 100644 --- a/src/nodedef.cpp +++ b/src/nodedef.cpp @@ -901,8 +901,15 @@ void ContentFeatures::updateTextures(ITextureSource *tsrc, IShaderSource *shdsrc solidness = 0; visual_solidness = 1; } else { - drawtype = NDT_NORMAL; - solidness = 2; + if (waving >= 1) { + // waving nodes must make faces so there are no gaps + drawtype = NDT_ALLFACES; + solidness = 0; + visual_solidness = 1; + } else { + drawtype = NDT_NORMAL; + solidness = 2; + } for (TileDef &td : tdef) td.name += std::string("^[noalpha"); }