ArabDesert/Assets/USharpVideo/Scripts/Utility/RendererGIUpdate.cs

26 lines
554 B
C#
Raw Normal View History

2024-05-25 09:10:35 +03:00

using UdonSharp;
using UnityEngine;
using VRC.SDKBase;
using VRC.Udon;
namespace UdonSharp.Video
{
[UdonBehaviourSyncMode(BehaviourSyncMode.NoVariableSync)]
[AddComponentMenu("Udon Sharp/Video/Utilities/Renderer GI Update")]
public class RendererGIUpdate : UdonSharpBehaviour
{
Renderer targetRenderer;
void Start()
{
targetRenderer = GetComponent<Renderer>();
}
private void Update()
{
RendererExtensions.UpdateGIMaterials(targetRenderer);
}
}
}