I'm working on a script that randomally generates a greyscale image. What i want is something similar to what is found on this page http://libnoise.sourceforge.net/tutorials/tutorial3.html ,in the middle of the page. So i want to somehow apply a premade gradient to each color value in each pixel. I have my gradient set up as a Texture2D. I hope you understand what i'm trying to do. What would be the best way to achieve this?