Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- [ExecuteInEditMode]
- public class CameraRenderTexture : MonoBehaviour
- {
- public Material Mat;
- public void OnRenderImage(RenderTexture source, RenderTexture destination)
- {
- Graphics.Blit(source, destination, Mat);
- }
- }
Add Comment
Please, Sign In to add comment