X-Git-Url: https://eleni.mutantstargoat.com/git/?p=demo;a=blobdiff_plain;f=src%2Fscene.cc;h=08689f6831061b89b94ce320294d5b65dfee2024;hp=2dc20bc32f20de78197e237be4698acee39b7d03;hb=4081e0e8f0f391aa25d67b73c45e73ccacff0f00;hpb=7a8a3e835aa4fefb930b843466db1566621e1fbe diff --git a/src/scene.cc b/src/scene.cc index 2dc20bc..08689f6 100644 --- a/src/scene.cc +++ b/src/scene.cc @@ -100,7 +100,7 @@ static void create_object(aiNode *node, Mat4 parent_transform, Scene *scene, con The 99% of the scenes have 1 mesh per node => for simplicity we only check the 1st one. Also: the 3D models we are going to use for this demo, have flat structure (no hierarchy) but just in case we need to replace them later, we calculate the transform by assuming that we - have a node hierarchy. This => that each object's modelling transformation is the + have a node hierarchy. This => that each object's modelling transformation is the product of its local transformation (mTransformation) with the acc parent nodes transformations (parent_transform) */