From 9d7a24113ef76dd352b256b91838a1782555df00 Mon Sep 17 00:00:00 2001 From: DeMuenu <96650288+DeMuenu@users.noreply.github.com> Date: Sun, 5 Oct 2025 14:38:21 +0200 Subject: [PATCH] Fixed default Shader Variable --- Scripts/LightUpdater.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Scripts/LightUpdater.cs b/Scripts/LightUpdater.cs index bcecd95..2c4a7fb 100644 --- a/Scripts/LightUpdater.cs +++ b/Scripts/LightUpdater.cs @@ -28,9 +28,11 @@ public partial class LightUpdater : UdonSharpBehaviour public float PlayerShadowMapIndex = 0f; // 0 = no shadows, 1-4 = shadow map index + public float updateInterval = 0.025f; + [Header("Shader property names (advanced users)")] [Tooltip("Vector4 array: xyz = position, w = range")] - public string positionsProperty = "_Udon_PlayerPositions"; + public string positionsProperty = "_Udon_LightPositions"; [Tooltip("Actual array count")] public string countProperty = "_Udon_PlayerCount"; @@ -107,7 +109,7 @@ public partial class LightUpdater : UdonSharpBehaviour void LateUpdate() { if (Time.time < _nextUpdate) return; - _nextUpdate = Time.time + 0.025f; + _nextUpdate = Time.time + updateInterval; UpdateData(); PushToRenderers();