mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Clean up texture filtering settings (#13683)
This commit is contained in:
parent
d0ee63c766
commit
72ef90885d
8 changed files with 52 additions and 94 deletions
|
@ -19,6 +19,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
#include "clientmap.h"
|
||||
#include "client.h"
|
||||
#include "client/mesh.h"
|
||||
#include "mapblock_mesh.h"
|
||||
#include <IMaterialRenderer.h>
|
||||
#include <matrix4.h>
|
||||
|
@ -843,7 +844,7 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass)
|
|||
|
||||
// Apply filter settings
|
||||
material.forEachTexture([this] (auto &tex) {
|
||||
tex.setFiltersMinetest(m_cache_bilinear_filter, m_cache_trilinear_filter,
|
||||
setMaterialFilters(tex, m_cache_bilinear_filter, m_cache_trilinear_filter,
|
||||
m_cache_anistropic_filter);
|
||||
});
|
||||
material.Wireframe = m_control.show_wireframe;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue