tonynogo

Demo 73 - Camera script

Jul 6th, 2017
3,463
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2.  
  3. [ExecuteInEditMode]
  4. public class CameraRenderTexture : MonoBehaviour
  5. {
  6.     public Material Mat;
  7.  
  8.     public void OnRenderImage(RenderTexture source, RenderTexture destination)
  9.     {
  10.         Graphics.Blit(source, destination, Mat);
  11.     }
  12. }
RAW Paste Data