Attempt at smoothing GUI icons when scaled down. Doesn't appear to change much.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8432 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
auria 2011-04-23 19:21:54 +00:00
parent 7bf9bf353c
commit 0438696ac6

View File

@ -231,12 +231,12 @@ void IrrDriver::initDevice()
material2D.setFlag(video::EMF_ANTI_ALIASING, true); material2D.setFlag(video::EMF_ANTI_ALIASING, true);
for (unsigned int n=0; n<MATERIAL_MAX_TEXTURES; n++) for (unsigned int n=0; n<MATERIAL_MAX_TEXTURES; n++)
{ {
material2D.TextureLayer[n].BilinearFilter = true; material2D.TextureLayer[n].TrilinearFilter = true;
//material2D.TextureLayer[n].TextureWrap = ETC_CLAMP_TO_EDGE; //material2D.TextureLayer[n].TextureWrap = ETC_CLAMP_TO_EDGE;
material2D.TextureLayer[n].TextureWrapU = ETC_CLAMP_TO_EDGE; material2D.TextureLayer[n].TextureWrapU = ETC_CLAMP_TO_EDGE;
material2D.TextureLayer[n].TextureWrapV = ETC_CLAMP_TO_EDGE; material2D.TextureLayer[n].TextureWrapV = ETC_CLAMP_TO_EDGE;
material2D.TextureLayer[n].LODBias = 8; //material2D.TextureLayer[n].LODBias = 8;
} }
material2D.AntiAliasing=video::EAAM_FULL_BASIC; material2D.AntiAliasing=video::EAAM_FULL_BASIC;
//m_video_driver->enableMaterial2D(); //m_video_driver->enableMaterial2D();