From 5984763d43373421119a084e1926dc8618a645ab Mon Sep 17 00:00:00 2001 From: Shaun Reed Date: Sun, 23 Mar 2025 09:08:15 -0400 Subject: [PATCH] Fix setting light poition for models. --- src/app/qtkscene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/qtkscene.cpp b/src/app/qtkscene.cpp index 2fe1d71..8fbaf54 100644 --- a/src/app/qtkscene.cpp +++ b/src/app/qtkscene.cpp @@ -485,7 +485,7 @@ void QtkScene::update() // Helper lambda to set the light position used by GLSL shaders on the model. // TODO: This could be a helper function on the Model class. auto setLightPosition = [](const std::string & lightName, Model * model) { - if (auto light = Model::getInstance(lightName.c_str()); light) { + if (auto light = MeshRenderer::getInstance(lightName.c_str()); light) { QVector3D position = light->getTransform().getTranslation(); model->setUniform("uLight.position", position); } else {