Skip to content

Commit

Permalink
Revert "2D rendering: Enable bilinear filter for downscaling textures"
Browse files Browse the repository at this point in the history
This reverts commit minetest/irrlicht@fb7a0e4.
  • Loading branch information
grorp committed Nov 4, 2024
1 parent 13ecb29 commit 7fd8696
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions irr/src/CNullDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ CNullDriver::CNullDriver(io::IFileSystem *io, const core::dimension2d<u32> &scre
InitMaterial2D.ZBuffer = video::ECFN_DISABLED;
InitMaterial2D.UseMipMaps = false;
InitMaterial2D.forEachTexture([](auto &tex) {
// Using ETMINF_LINEAR_MIPMAP_NEAREST (bilinear) for 2D graphics looks
// much better and doesn't have any downsides (e.g. regarding pixel art).
tex.MinFilter = video::ETMINF_LINEAR_MIPMAP_NEAREST;
tex.MinFilter = video::ETMINF_NEAREST_MIPMAP_NEAREST;
tex.MagFilter = video::ETMAGF_NEAREST;
tex.TextureWrapU = video::ETC_REPEAT;
tex.TextureWrapV = video::ETC_REPEAT;
Expand Down

0 comments on commit 7fd8696

Please sign in to comment.