Created
July 16, 2015 06:51
-
-
Save kahrl/3551fdb39aef1dca505d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/wieldmesh.cpp b/src/wieldmesh.cpp | |
index 036b25a..b54f278 100644 | |
--- a/src/wieldmesh.cpp | |
+++ b/src/wieldmesh.cpp | |
@@ -282,6 +282,8 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename, | |
// Customize material | |
video::SMaterial &material = m_meshnode->getMaterial(0); | |
material.setTexture(0, tsrc->getTextureForMesh(imagename)); | |
+ material.TextureLayer[0].TextureWrapU = video::ETC_CLAMP_TO_EDGE; | |
+ material.TextureLayer[0].TextureWrapV = video::ETC_CLAMP_TO_EDGE; | |
material.MaterialType = m_material_type; | |
material.setFlag(video::EMF_BACK_FACE_CULLING, true); | |
// Enable bi/trilinear filtering only for high resolution textures |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment