首次提交
This commit is contained in:
25
Assets/Scripts/Common/Blur/TestBlur.cs
Normal file
25
Assets/Scripts/Common/Blur/TestBlur.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user