Enable SingleSphereGeometry to have more segments

Another fix for RenderablePlanetProjection heightmap offset
This commit is contained in:
Alexander Bock
2016-05-18 20:19:47 +02:00
parent e6abbcd73a
commit 7d32dba5cb
4 changed files with 10 additions and 10 deletions
@@ -693,6 +693,7 @@ void RenderablePlanetProjection::loadTexture() {
if (_heightMapTexturePath.value() != "") {
_heightMapTexture = ghoul::io::TextureReader::ref().loadTexture(_heightMapTexturePath);
if (_heightMapTexture) {
ghoul::opengl::convertTextureFormat(Texture::Format::RGB, *_heightMapTexture);
_heightMapTexture->uploadTexture();
_heightMapTexture->setFilter(Texture::FilterMode::Linear);
}