tonynogo

Demo 78 - Camera script

Jul 6th, 2017
8,499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment