Insect vision

Hi all!

I have this insect vision shader from vvvv, but I don’t know how to use it in Unity3D.
Can anyone help me? I would like to use this as a post process shader.

		float2 R;
		int2 CellSize <float uimin=0;> = (16,16);
		float2 Morph = (1,1);
		texture tex0,tex1;
		
		sampler s0=sampler_state{
			Texture=(tex0);
			MipFilter=NONE;
			MinFilter=LINEAR;
			MagFilter=LINEAR;
		};
		
		sampler s1=sampler_state{
			Texture=(tex1);
			MipFilter=NONE;
			MinFilter=POINT;
			MagFilter=POINT;
		};
		
		float4 lm(float4 c){
			c.rgb=dot(c.rgb,normalize(float3(.33,.59,.11))/1.5);
			return c;
		}
		
		float4 p0(float2 x:TEXCOORD0):color{
		    float2 sz=R/min(max(0.5/R,CellSize),R)*float2(1,.577);
		    float4 m1=tex2D(s1,lerp(x,(round((x-.5)*sz-.5)+.5)/sz+.5,1));
		    float4 m2=tex2D(s1,lerp(x,(round((x-.5)*sz))/sz+.5,1));
		    float4 m=lerp(m1,m2,step(abs(frac((x.y-.5)*sz.y+.5)-.5),.25+(abs(frac((x.x-.5)*sz.x+.5+.5)-.5)-.25)/3.));
		    float4 c1=tex2D(s0,lerp(x,(round((x-.5)*sz-.5)+.5)/sz+.5,Morph*lm(m).x));
		    float4 c2=tex2D(s0,lerp(x,(round((x-.5)*sz))/sz+.5,Morph*lm(m).x));
		    float4 c=lerp(c1,c2,step(abs(frac((x.y-.5)*sz.y+.5)-.5),.25+(abs(frac((x.x-.5)*sz.x+.5+.5)-.5)-.25)/3.));
		    return c;
		}
		
		void vs2d(inout float4 vp:POSITION0,inout float2 uv:TEXCOORD0){
			vp.xy*=2;
			uv+=.5/R;
		}
		
		technique Hexagonize{
			pass pp0{
				vertexshader=compile vs_2_0 vs2d();
				pixelshader=compile ps_2_0 p0();
				}
		}

Can you provide more detail about where this came from? Also, what are the two texture inputs supposed to be?

I’ve got this from vvvv visual programming language (http://vvvv.org)
I didn’t find anything better for a starting point.

I would like to achieve something similiar to this: http://hitfilm.com/reference/insect.zoom20.png

According to the picture you linked, it can be achieved with just a normal map on screen. There are also alternatives.
You can find smiliar effects in my post processing pack in assetstore.