mirror of
https://github.com/minetest/minetest.git
synced 2024-11-10 01:33:46 +01:00
Re-enable texture pre-filters on wielditems, fixing #3178.
This commit is contained in:
parent
0cf15470fc
commit
900db31063
@ -283,7 +283,7 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename,
|
|||||||
|
|
||||||
// Customize material
|
// Customize material
|
||||||
video::SMaterial &material = m_meshnode->getMaterial(0);
|
video::SMaterial &material = m_meshnode->getMaterial(0);
|
||||||
material.setTexture(0, tsrc->getTexture(imagename));
|
material.setTexture(0, tsrc->getTextureForMesh(imagename));
|
||||||
material.TextureLayer[0].TextureWrapU = video::ETC_CLAMP_TO_EDGE;
|
material.TextureLayer[0].TextureWrapU = video::ETC_CLAMP_TO_EDGE;
|
||||||
material.TextureLayer[0].TextureWrapV = video::ETC_CLAMP_TO_EDGE;
|
material.TextureLayer[0].TextureWrapV = video::ETC_CLAMP_TO_EDGE;
|
||||||
material.MaterialType = m_material_type;
|
material.MaterialType = m_material_type;
|
||||||
|
Loading…
Reference in New Issue
Block a user