Created
November 26, 2014 18:49
-
-
Save kahrl/52e88e9a78863be2ea1c 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 71193da..6679324 100644 | |
--- a/src/wieldmesh.cpp | |
+++ b/src/wieldmesh.cpp | |
@@ -279,16 +279,15 @@ void WieldMeshSceneNode::setExtruded(const std::string &imagename, | |
material.setTexture(0, texture); | |
material.MaterialType = m_material_type; | |
material.setFlag(video::EMF_BACK_FACE_CULLING, true); | |
- // Enable filtering only for high resolution texures | |
+ // Enable bi/trilinear filtering only for high resolution textures | |
if (dim.Width > 32) { | |
- material.setFlag(video::EMF_ANISOTROPIC_FILTER, m_anisotropic_filter); | |
material.setFlag(video::EMF_BILINEAR_FILTER, m_bilinear_filter); | |
material.setFlag(video::EMF_TRILINEAR_FILTER, m_trilinear_filter); | |
} else { | |
- material.setFlag(video::EMF_ANISOTROPIC_FILTER, false); | |
material.setFlag(video::EMF_BILINEAR_FILTER, false); | |
material.setFlag(video::EMF_TRILINEAR_FILTER, false); | |
} | |
+ material.setFlag(video::EMF_ANISOTROPIC_FILTER, m_anisotropic_filter); | |
// mipmaps cause "thin black line" artifacts | |
#if (IRRLICHT_VERSION_MAJOR >= 1 && IRRLICHT_VERSION_MINOR >= 8) || IRRLICHT_VERSION_MAJOR >= 2 | |
material.setFlag(video::EMF_USE_MIP_MAPS, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment