mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 00:44:43 -05:00
New asset structure and fixes for sphere slices
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user