11 lines
262 B
C#
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);
|
|||
|
}
|
|||
|
}
|