Skip to content

Instantly share code, notes, and snippets.

@newyellow
Last active July 19, 2017 11:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save newyellow/abd6883e3e92709f112ba9c1fcc3162c to your computer and use it in GitHub Desktop.
Save newyellow/abd6883e3e92709f112ba9c1fcc3162c to your computer and use it in GitHub Desktop.
RenderTextureToBlend.cs
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