Feature/mipmapping (#454)

* Enable mipmapping for textures where it was previously disabled

* Fix mipmapping for renderable projections
This commit is contained in:
Emil Axelsson
2018-01-09 17:52:34 +01:00
committed by GitHub
parent a0218dcbbd
commit 2758b35dec
20 changed files with 84 additions and 55 deletions

View File

@@ -637,7 +637,7 @@ void RenderablePlanet::loadTexture() {
// linear
// TODO: AnisotropicMipMap crashes on ATI cards ---abock
//_texture->setFilter(ghoul::opengl::Texture::FilterMode::AnisotropicMipMap);
_texture->setFilter(ghoul::opengl::Texture::FilterMode::Linear);
_texture->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap);
}
}
@@ -650,7 +650,7 @@ void RenderablePlanet::loadTexture() {
if (_nightTexture) {
LDEBUG("Loaded texture from '" << _nightTexturePath << "'");
_nightTexture->uploadTexture();
_nightTexture->setFilter(ghoul::opengl::Texture::FilterMode::Linear);
_nightTexture->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap);
//_nightTexture->setFilter(
// ghoul::opengl::Texture::FilterMode::AnisotropicMipMap
//);