mirror of https://github.com/minetest/minetest.git
Anisotropic filter, trilinear filter, mip maps
This commit is contained in:
parent
aa5bf48bd9
commit
34935e0b35
|
@ -467,6 +467,12 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
|
|||
for(u32 i=0; i<c; i++)
|
||||
{
|
||||
scene::IMeshBuffer *buf = mesh->getMeshBuffer(i);
|
||||
|
||||
//AA + Trilinear
|
||||
buf->getMaterial().setFlag(video::EMF_BILINEAR_FILTER, false);
|
||||
buf->getMaterial().setFlag(video::EMF_TRILINEAR_FILTER, true);
|
||||
buf->getMaterial().setFlag(video::EMF_ANISOTROPIC_FILTER, true);
|
||||
|
||||
const video::SMaterial& material = buf->getMaterial();
|
||||
video::IMaterialRenderer* rnd =
|
||||
driver->getMaterialRenderer(material.MaterialType);
|
||||
|
|
|
@ -1293,7 +1293,7 @@ int main(int argc, char *argv[])
|
|||
video::IVideoDriver* driver = device->getVideoDriver();
|
||||
|
||||
// Disable mipmaps (because some of them look ugly)
|
||||
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, false);
|
||||
driver->setTextureCreationFlag(video::ETCF_CREATE_MIP_MAPS, true);
|
||||
|
||||
/*
|
||||
This changes the minimum allowed number of vertices in a VBO.
|
||||
|
|
Loading…
Reference in New Issue