Skip to content

Commit

Permalink
fbx import - fixed light positions
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Dec 6, 2024
1 parent 8386875 commit e658b5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/editor/fbx_importer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,9 @@ struct FBXImporter : ModelImporter {
for (i32 i = 0, c = m_scene->getLightCount(); i < c; ++i) {
const ofbx::Light* light = m_scene->getLight(i);
const Matrix mtx = toLumix(light->getGlobalTransform());
const DVec3 pos = DVec3(mtx.getTranslation() * meta.scene_scale * m_scene_scale);
Vec3 v = mtx.getTranslation() * meta.scene_scale * m_scene_scale;
v = fixOrientation(v);
const DVec3 pos = DVec3(v);
m_lights.push(pos);
}
}
Expand Down

0 comments on commit e658b5c

Please sign in to comment.