Created
October 21, 2018 08:58
-
-
Save TheStoneBook/23fc8ac4a77e498119cf93665f183809 to your computer and use it in GitHub Desktop.
【Unity】ポストエフェクトの適用
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
//[ExecuteInEditMode] | |
public class PostEffect : MonoBehaviour { | |
[SerializeField] | |
private Material _material; | |
private void OnRenderImage(RenderTexture source, RenderTexture destination) | |
{ | |
Graphics.Blit(source, destination, _material); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment