sampler2D Texture0;
sampler2D Texture1;

float4 ps_main( float2 texCoord  : TEXCOORD0 ) : COLOR
{
   float2 convertor = float2(0.2, 0.2); 
   float2 vector_a = float2(0, 1); 
   float2 vector_b = float2(0.866, -0.5); 
   float2 vector_c = float2(-0.866, -0.5); 
   float4 color = tex2D( Texture1, texCoord );
   float2 offset = vector_a*color.x + vector_b*color.y + vector_c*color.z;
   offset *= convertor;

   return tex2D( Texture0, texCoord + offset );
}