Files
Fishing2NetTest/Assets/Scripts/Common/Blur/TestBlur.cs
2026-03-05 18:07:55 +08:00

25 lines
532 B
C#

using UnityEngine;
using UnityEngine.UI;
namespace NBF.Blur
{
public class TestBlur : MonoBehaviour
{
public RawImage raw;
public void Test()
{
Shader.SetGlobalInt("_UIBlurRefresh", 1);
// var blur = URPRendererFeatureUtil.GetRendererFeature<UIBlurDualKawaseFeature>();
// blur?.RefreshOnce();
}
void LateUpdate()
{
if (!raw) return;
raw.texture = Shader.GetGlobalTexture("_UIBlurTexture");
}
}
}