Last active
July 19, 2017 11:23
-
-
Save newyellow/abd6883e3e92709f112ba9c1fcc3162c to your computer and use it in GitHub Desktop.
RenderTextureToBlend.cs
This file contains 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; | |
using System.Collections; | |
public class RenderTextureToBlend : MonoBehaviour { | |
public RenderTexture _texture; | |
public Colorful.Blend _blend; | |
// Use this for initialization | |
void Start () { | |
_texture = new RenderTexture (Screen.width, Screen.height, 16); | |
gameObject.GetComponent<Camera> ().targetTexture = _texture; | |
_blend.Texture = _texture; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment