From 8eb0f6719a4cfd634853fa61b5e5fb647af890e4 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Thu, 4 Dec 2014 18:58:16 +0100 Subject: [PATCH] Now generating Mipmaps for textures. --- material.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/material.cc b/material.cc index b8639fd..d084f5e 100644 --- a/material.cc +++ b/material.cc @@ -3,6 +3,7 @@ Material::Material(std::string filePath, float ambientFactor, float diffuseFactor, float specularFactor, float shininess) { reference = ACGL::OpenGL::Texture2DFileManager::the()->get(ACGL::OpenGL::Texture2DCreator(filePath)); + reference->generateMipmaps(); this->ambientFactor = ambientFactor; this->diffuseFactor = diffuseFactor; this->specularFactor = specularFactor;