This is a simple example of CustomRenderTexture available from Unity 2017.1.
This work is licensed under a Creative Commons Attribution 4.0 International License.