diff options
author | RealBadAngel <maciej.kasatkin@o2.pl> | 2015-08-20 03:39:26 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-08-20 03:42:22 +0200 |
commit | 980d095e32c5441ca8a6aa7b2f8a07eb64c99190 (patch) | |
tree | b9fdbaa0b55e53eff5d839a8a9c712a502663794 /src/client | |
parent | 8b8d17b22b5853c7d32bdb8b369f4523f6c57b95 (diff) | |
download | minetest-980d095e32c5441ca8a6aa7b2f8a07eb64c99190.tar.gz minetest-980d095e32c5441ca8a6aa7b2f8a07eb64c99190.tar.bz2 minetest-980d095e32c5441ca8a6aa7b2f8a07eb64c99190.zip |
tileable flags are needed also without shaders because of filters
Diffstat (limited to 'src/client')
-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 |