Created
November 6, 2016 18:32
-
-
Save Muratam/e4571dc496443764c92e2f78975b469b to your computer and use it in GitHub Desktop.
This file contains hidden or 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; | |
[RequireComponent(typeof(Camera))] | |
public class MonoImageEffect : MonoBehaviour { | |
private Material m_Material; | |
[SerializeField] Material material; | |
protected virtual 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