Exemplo n.º 1
0
 public static Color[] CreateBlurredGrayscaleTexture(Color[] srcData, int width, int height,
                                                     double deviation = 1)
 {
     return(GaussianBlur.CreateBlurredGrayscaleTexture(srcData, width, height, deviation));
 }
Exemplo n.º 2
0
 /// <summary>
 /// creates a new texture that is a gaussian blurred version of the original in grayscale
 /// </summary>
 /// <returns>The blurred texture.</returns>
 /// <param name="image">Image.</param>
 /// <param name="deviation">Deviation.</param>
 public static Texture2D CreateBlurredGrayscaleTexture(Texture2D image, double deviation = 1)
 {
     return(GaussianBlur.CreateBlurredGrayscaleTexture(image, deviation));
 }