Skip to content

Instantly share code, notes, and snippets.

@Muratam
Created November 6, 2016 18:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Muratam/e4571dc496443764c92e2f78975b469b to your computer and use it in GitHub Desktop.
Save Muratam/e4571dc496443764c92e2f78975b469b to your computer and use it in GitHub Desktop.
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