New asset structure and fixes for sphere slices

This commit is contained in:
Christian Adamsson
2020-08-11 16:00:04 +02:00
parent d4908040d2
commit e51032ce0f
8 changed files with 114 additions and 30 deletions
@@ -233,7 +233,7 @@ namespace openspace {
//LDEBUG("Vi borde uppdatera1");
// _mustLoadNewStateFromDisk = true;
LDEBUG("vi borde uppdatera");
//LDEBUG("vi borde uppdatera");
_needsUpdate = true;
} // else {we're still in same state as previous frame (no changes needed)}
@@ -319,10 +319,10 @@ namespace openspace {
std::unique_ptr<ghoul::opengl::Texture> texture =
ghoul::io::TextureReader::ref().loadTexture(absPath(path));
LDEBUGC(
"RenderableTimeVaryingPlaneImageLocal",
fmt::format("Loaded texture from '{}'", absPath(path))
);
// LDEBUGC(
// "RenderableTimeVaryingPlaneImageLocal",
// fmt::format("Loaded texture from '{}'", absPath(path))
//);
texture->uploadTexture();
texture->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap);
texture->purgeFromRAM();
@@ -524,7 +524,7 @@ void RenderableTimeVaryingSphere::update(const UpdateData& data) {
//LDEBUG("Vi borde uppdatera1");
// _mustLoadNewStateFromDisk = true;
LDEBUG("vi borde uppdatera");
//LDEBUG("vi borde uppdatera");
_needsUpdate = true;
} // else {we're still in same state as previous frame (no changes needed)}
@@ -623,10 +623,10 @@ void RenderableTimeVaryingSphere::loadTexture() {
std::unique_ptr<ghoul::opengl::Texture> texture =
ghoul::io::TextureReader::ref().loadTexture(absPath(path));
LDEBUGC(
"RenderableTimeVaryingSphere",
fmt::format("Loaded texture from '{}'", absPath(path))
);
//LDEBUGC(
// "RenderableTimeVaryingSphere",
// fmt::format("Loaded texture from '{}'", absPath(path))
// );
texture->uploadTexture();
texture->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap);
texture->purgeFromRAM();