mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +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.,
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "SMaterialLayer.h"
|
||||
#include "irrlichttypes_extrabloated.h"
|
||||
#include "nodedef.h"
|
||||
|
||||
|
@ -133,3 +134,10 @@ void recalculateBoundingBox(scene::IMesh *src_mesh);
|
|||
We assume normal to be valid when it's 0 < length < Inf. and not NaN
|
||||
*/
|
||||
bool checkMeshNormals(scene::IMesh *mesh);
|
||||
|
||||
/*
|
||||
Set the MinFilter, MagFilter and AnisotropicFilter properties of a texture
|
||||
layer according to the three relevant boolean values found in the Minetest
|
||||
settings.
|
||||
*/
|
||||
void setMaterialFilters(video::SMaterialLayer &tex, bool bilinear, bool trilinear, bool anisotropic);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue