From 980d095e32c5441ca8a6aa7b2f8a07eb64c99190 Mon Sep 17 00:00:00 2001 From: RealBadAngel Date: Thu, 20 Aug 2015 03:39:26 +0200 Subject: [PATCH] tileable flags are needed also without shaders because of filters --- src/client/tile.h | 6 ++++++ 1 file changed, 6 insertions(+) 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