fix: return light entity from SceneManager

This commit is contained in:
Nick Fisher
2025-01-07 08:43:06 +08:00
parent 3a231697e5
commit 9a055174e6

View File

@@ -209,6 +209,7 @@ extern "C"
auto *sceneManager = reinterpret_cast<SceneManager *>(tSceneManager);
auto entity = sceneManager->addLight(
(LightManager::Type)type, colour, intensity, posX, posY, posZ, dirX, dirY, dirZ, falloffRadius, spotLightConeInner, spotLightConeOuter, sunAngularRadius, sunHaloSize, sunHaloFallof, shadows);
return Entity::smuggle(entity);
}
EMSCRIPTEN_KEEPALIVE void SceneManager_removeLight(TSceneManager *tSceneManager, EntityId entityId)