forked from Mirrorlandia_minetest/minetest
tileable flags are needed also without shaders because of filters
This commit is contained in:
parent
8b8d17b22b
commit
980d095e32
@ -250,6 +250,12 @@ struct TileSpec
|
|||||||
}
|
}
|
||||||
material.BackfaceCulling = (material_flags & MATERIAL_FLAG_BACKFACE_CULLING)
|
material.BackfaceCulling = (material_flags & MATERIAL_FLAG_BACKFACE_CULLING)
|
||||||
? true : false;
|
? 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
|
void applyMaterialOptionsWithShaders(video::SMaterial &material) const
|
||||||
|
Loading…
Reference in New Issue
Block a user