I am trying to do image processing which I’ve found is much too slow with GetPixels32(). Instead I’m looking at using a shader. The problem is there is no way I have found to set an array or get an array, specifically a Vector2. I thought I could take advantage of the uv array but didn’t know if this was possible. Does anyone have a suggestion as to what I can do?
SepiaToneEffect.cs
using UnityEngine; [ExecuteInEditMode] [AddComponentMenu("Image Effects/Sepia Tone")] public class SepiaToneEffect : ImageEffectBase { // Called by camera to apply image effect void OnRenderImage (RenderTexture source, RenderTexture destination) { Graphics.Blit (source, destination, material); } }