#ifndef GAUSSIAN_BLUR_INCLUDE #define GAUSSIAN_BLUR_INCLUDE #define MAX_PARAMS_LENGHT 4 // 0.25, 0.5, 0.25 static const float gaussianCoreParams3[MAX_PARAMS_LENGHT] = {0.5, 0.25, 0, 0}; static const int gaussianCoreParams3_Length = 2; // 0.06542056, 0.2429907, 0.3831776, 0.2429907, 0.06542056 static const float gaussianCoreParams5[MAX_PARAMS_LENGHT] = {0.3831776, 0.2429907, 0.06542056, 0}; static const int gaussianCoreParams5_Length = 3; // 0.004987531, 0.054862843, 0.241895262, 0.396508728, 0.241895262, 0.054862843, 0.004987531 static const float gaussianCoreParams7[MAX_PARAMS_LENGHT] = {0.396508728, 0.241895262, 0.054862843, 0.004987531}; static const int gaussianCoreParams7_Length = 4; float4 GaussianSampleLine_Common(sampler2D tex, float2 uv, float2 uv_delta, const float params[MAX_PARAMS_LENGHT], const int params_length) { float4 result = (float4)0; result += tex2D(tex, uv) * params[0]; UNITY_UNROLL for (int i=1; i