Skip to content

Commit

Permalink
tileable flags are needed also without shaders because of filters
Browse files Browse the repository at this point in the history
  • Loading branch information
RealBadAngel authored and est31 committed Aug 20, 2015
1 parent 8b8d17b commit 980d095
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/client/tile.h
Expand Up @@ -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
Expand Down

0 comments on commit 980d095

Please sign in to comment.