aboutsummaryrefslogtreecommitdiff
path: root/src/utils/sceneparser.h
diff options
context:
space:
mode:
authorNicholas Bottone <nick@bottone.io>2023-12-08 13:52:22 -0500
committerNicholas Bottone <nick@bottone.io>2023-12-08 13:52:22 -0500
commit965859204890f980594f5fff1d20a46bb8606f55 (patch)
tree5f7da56bbd7beffe47ee43b091e1b92dc07461ff /src/utils/sceneparser.h
parent7e02d29375e9d6a1bbea98dc6dca600730ab8ec3 (diff)
Update translation and scaling in SceneTransformation struct
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