diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/client/tile.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 |