mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 03:47:13 +08:00
16 lines
330 B
C#
16 lines
330 B
C#
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace Base
|
||
|
|
{
|
||
|
|
[ExecuteInEditMode]
|
||
|
|
public class Pixelate : MonoBehaviour
|
||
|
|
{
|
||
|
|
public Material effectMaterial;
|
||
|
|
|
||
|
|
private void OnRenderImage(RenderTexture source, RenderTexture destination)
|
||
|
|
{
|
||
|
|
Graphics.Blit(source, destination, effectMaterial);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|