summaryrefslogtreecommitdiff
path: root/game/network/network.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-12-24 15:07:32 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2024-12-24 15:07:32 +0000
commit6ad6d935d8a601908d49a82fb56f1f2c14871573 (patch)
treed896cfc75fc09fb49eb1113dcef5fee71b6e0dcb /game/network/network.cpp
parentFix calculations for sleeper texture coords (diff)
downloadilt-6ad6d935d8a601908d49a82fb56f1f2c14871573.tar.bz2
ilt-6ad6d935d8a601908d49a82fb56f1f2c14871573.tar.xz
ilt-6ad6d935d8a601908d49a82fb56f1f2c14871573.zip
Enable min mipmap on network texture
Diffstat (limited to 'game/network/network.cpp')
-rw-r--r--game/network/network.cpp8
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)