Files
JJBB/Assets/Project/Script/Player/Controller/CameraGrayEffect.cs
2024-08-23 15:49:34 +08:00

11 lines
262 B
C#

using UnityEngine;
public class CameraGrayEffect : MonoBehaviour
{
public Material mat;
private void OnRenderImage(RenderTexture src, RenderTexture dest)
{
if (mat == null)
return;
Graphics.Blit(src, dest, mat);
}
}