Files
JJBB/Assets/Project/Script/Player/Controller/CameraGrayEffect.cs

11 lines
262 B
C#
Raw Normal View History

2024-08-23 15:49:34 +08:00
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);
}
}