mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-04-25 21:48:57 -05:00
Enable SingleSphereGeometry to have more segments
Another fix for RenderablePlanetProjection heightmap offset
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user