Add wrapping mode to texture component

This commit is contained in:
Emma Broman
2021-01-25 14:01:49 +01:00
parent d693dd0bbe
commit e90b52af93
4 changed files with 21 additions and 17 deletions
@@ -157,9 +157,8 @@ bool RenderableOrbitDisc::isReady() const {
}
void RenderableOrbitDisc::initialize() {
_texture = std::make_unique<TextureComponent>(
ghoul::opengl::Texture::FilterMode::AnisotropicMipMap
);
_texture = std::make_unique<TextureComponent>();
_texture->setFilterMode(ghoul::opengl::Texture::FilterMode::AnisotropicMipMap);
_plane = std::make_unique<PlaneGeometry>(planeSize());
}