Remove caching of inverse model transform for every scene graph node

This commit is contained in:
Alexander Bock
2020-08-11 11:43:50 +02:00
parent 84e3fb94e9
commit 77db3b6ce8
10 changed files with 24 additions and 16 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ namespace ghoul { class Dictionary; }
namespace ghoul::opengl {
class ProgramObject;
class Texture;
}
} // namespace ghoul::opengl
namespace openspace {
-2
View File
@@ -120,7 +120,6 @@ public:
glm::dvec3 worldPosition() const;
const glm::dmat3& worldRotationMatrix() const;
glm::dmat4 modelTransform() const;
glm::dmat4 inverseModelTransform() const;
glm::dvec3 worldScale() const;
bool isTimeFrameActive(const Time& time) const;
@@ -176,7 +175,6 @@ private:
glm::dvec3 _worldScaleCached = glm::dvec3(1.0);
glm::dmat4 _modelTransformCached = glm::dmat4(1.0);
glm::dmat4 _inverseModelTransformCached = glm::dmat4(1.0);
properties::FloatProperty _boundingSphere;
properties::BoolProperty _computeScreenSpaceValues;