Last active
June 27, 2017 14:07
-
-
Save JLChnToZ/667effd8d976a0fdc2f8da9265684689 to your computer and use it in GitHub Desktop.
Camera Fork
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; | |
| [ExecuteInEditMode, RequireComponent(typeof(Camera))] | |
| public class ScreenFork: MonoBehaviour { | |
| public RenderTexture copyTo; | |
| private void OnRenderImage(RenderTexture src, RenderTexture dest) { | |
| Graphics.Blit(src, dest); | |
| if(copyTo != null) | |
| Graphics.Blit(src, copyTo); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment