aboutsummaryrefslogtreecommitdiff
path: root/src/utils/sceneparser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/sceneparser.h')
-rw-r--r--src/utils/sceneparser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/sceneparser.h b/src/utils/sceneparser.h
index 699d6fb..8155ca8 100644
--- a/src/utils/sceneparser.h
+++ b/src/utils/sceneparser.h
@@ -9,7 +9,9 @@
struct RenderShapeData {
ScenePrimitive primitive;
glm::mat4 ctm; // the cumulative transformation matrix
+ glm::vec4 translation4d; // appended to the right of the ctm (for 4d translation)
glm::mat4 inverseCTM;
+ glm::vec4 inverseTranslation4d; // appended to the right of the inverse ctm (for 4d translation)
};
// Struct which contains all the data needed to render a scene