diff --git a/ios/src/FilamentViewer.cpp b/ios/src/FilamentViewer.cpp index 1e8701c5..3754ffbf 100644 --- a/ios/src/FilamentViewer.cpp +++ b/ios/src/FilamentViewer.cpp @@ -248,7 +248,7 @@ void FilamentViewer::setFrameInterval(float frameInterval) { int32_t FilamentViewer::addLight(LightManager::Type t, float colour, float intensity, float posX, float posY, float posZ, float dirX, float dirY, float dirZ, bool shadows) { Log("Adding light of type %d with colour %f intensity %f at (%f, %f, %f) with direction (%f, %f, %f) with shadows %d", t, colour, intensity, posX, posY, posZ, dirX, dirY, dirZ, shadows); auto light = EntityManager::get().create(); - LightManager::Builder(LightManager::Type::SUN) + LightManager::Builder(t) .color(Color::cct(colour)) .intensity(intensity) .position(math::float3(posX, posY, posZ))