From ef007dd9e81d5ca5804c1ae4954f44bab6c61715 Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Mon, 9 Dec 2024 17:06:27 +0100 Subject: [PATCH] Correct scene model light intensity --- .../Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs b/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs index eccc0e3..c9d3d88 100644 --- a/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs +++ b/Runtime/HumanoidControl/Scripts/Networking/Roboid/HumanoidPlayerRoboid.cs @@ -546,6 +546,11 @@ namespace Passer.Humanoid { loadingModel = false; Transform parentTransform = await InstantiateGltf(gltfImport, msg.thingId, msg.scale); ScanModelForThings(parentTransform); + // Correct lights + Light[] lights = parentTransform.GetComponentsInChildren(); + foreach (Light light in lights) + light.intensity = 1; // light.intensity / 1000; + } else { this.transform.localScale = Vector3.one * 1;