Changing how textures are approximated.

This commit is contained in:
Faerbit 2015-03-15 15:38:33 +01:00
parent 33e7baed94
commit 608c159aa6

View File

@ -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;