From 608c159aa664422405247fd19bdb6f336fec6363 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Sun, 15 Mar 2015 15:38:33 +0100 Subject: [PATCH] Changing how textures are approximated. --- game/material.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/material.cc b/game/material.cc index 37fc338..40776a8 100644 --- a/game/material.cc +++ b/game/material.cc @@ -4,6 +4,8 @@ Material::Material(std::string filePath, float ambientFactor, float diffuseFacto float specularFactor, float shininess, bool movingTexture) { reference = ACGL::OpenGL::Texture2DFileManager::the()->get(ACGL::OpenGL::Texture2DCreator(filePath)); reference->generateMipmaps(); + reference->setMinFilter(GL_NEAREST_MIPMAP_LINEAR); + reference->setMagFilter(GL_LINEAR); this->ambientFactor = ambientFactor; this->diffuseFactor = diffuseFactor; this->specularFactor = specularFactor;