From: RealBadAngel Date: Thu, 20 Aug 2015 01:39:26 +0000 (+0200) Subject: tileable flags are needed also without shaders because of filters X-Git-Tag: 0.4.13~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=980d095e32c5441ca8a6aa7b2f8a07eb64c99190;p=oweals%2Fminetest.git tileable flags are needed also without shaders because of filters --- diff --git a/src/client/tile.h b/src/client/tile.h index 3098a79b9..7796e801d 100644 --- a/src/client/tile.h +++ b/src/client/tile.h @@ -250,6 +250,12 @@ struct TileSpec } material.BackfaceCulling = (material_flags & MATERIAL_FLAG_BACKFACE_CULLING) ? true : false; + if (!(material_flags & MATERIAL_FLAG_TILEABLE_HORIZONTAL)) { + material.TextureLayer[0].TextureWrapU = video::ETC_CLAMP_TO_EDGE; + } + if (!(material_flags & MATERIAL_FLAG_TILEABLE_VERTICAL)) { + material.TextureLayer[0].TextureWrapV = video::ETC_CLAMP_TO_EDGE; + } } void applyMaterialOptionsWithShaders(video::SMaterial &material) const