diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-24 15:07:32 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2024-12-24 15:07:32 +0000 |
commit | 6ad6d935d8a601908d49a82fb56f1f2c14871573 (patch) | |
tree | d896cfc75fc09fb49eb1113dcef5fee71b6e0dcb /game | |
parent | Fix calculations for sleeper texture coords (diff) | |
download | ilt-6ad6d935d8a601908d49a82fb56f1f2c14871573.tar.bz2 ilt-6ad6d935d8a601908d49a82fb56f1f2c14871573.tar.xz ilt-6ad6d935d8a601908d49a82fb56f1f2c14871573.zip |
Enable min mipmap on network texture
Diffstat (limited to 'game')
-rw-r--r-- | game/network/network.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/game/network/network.cpp b/game/network/network.cpp index 6ba3ed6..1666c4d 100644 --- a/game/network/network.cpp +++ b/game/network/network.cpp @@ -8,7 +8,13 @@ #include <stdexcept> #include <utility> -Network::Network(const std::string & tn) : texture {std::make_shared<Texture>(tn)} { } +Network::Network(const std::string & tn) : + texture {std::make_shared<Texture>(tn, + TextureOptions { + .minFilter = GL_NEAREST_MIPMAP_LINEAR, + })} +{ +} Node::Ptr Network::nodeAt(GlobalPosition3D pos) |