26 lines
554 B
C#
26 lines
554 B
C#
|
|
|||
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|