mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 02:17:12 +08:00
Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com> Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/57
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);
|
|
}
|
|
}
|
|
|
|
} |