TextureFilter

Description
This static class contains a set of methods to modify a texture 2d. This isn't meant to replace the pro features of post process though.

Available filters :

- Grayscale - Threshold - Convolutions (edge detection, sharpen, linear blur, gaussian blur) - Sepia - Sobel filter to create a normal map - Possibility to add more ...

by Berenger

Usage
If you wan to add more, create two function, a public one that takes at least a Texture2D parameter, and a private one that takes (int, int, Color[], ref Color[], ...), like this :

Todo
This code could be improved by adding the possibility to cumulate x filter without having to call tex.Apply until the end, or even SetPixels, just by manipulating an array of Color.