Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created July 16, 2015 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/3551fdb39aef1dca505d to your computer and use it in GitHub Desktop.
Save kahrl/3551fdb39aef1dca505d to your computer and use it in GitHub Desktop.
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