Skip to content

Commit 980d095

Browse files
RealBadAngelest31
authored andcommitted
tileable flags are needed also without shaders because of filters
1 parent 8b8d17b commit 980d095

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/client/tile.h

+6
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ struct TileSpec
250250
}
251251
material.BackfaceCulling = (material_flags & MATERIAL_FLAG_BACKFACE_CULLING)
252252
? true : false;
253+
if (!(material_flags & MATERIAL_FLAG_TILEABLE_HORIZONTAL)) {
254+
material.TextureLayer[0].TextureWrapU = video::ETC_CLAMP_TO_EDGE;
255+
}
256+
if (!(material_flags & MATERIAL_FLAG_TILEABLE_VERTICAL)) {
257+
material.TextureLayer[0].TextureWrapV = video::ETC_CLAMP_TO_EDGE;
258+
}
253259
}
254260

255261
void applyMaterialOptionsWithShaders(video::SMaterial &material) const

0 commit comments

Comments
 (0)