From adf9cd94e97ef393d91d6e77c290a7fa5059b76a Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 3 Oct 2022 14:58:39 +1100 Subject: [PATCH] pass through light type --- ios/src/FilamentViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))