struct C2E2f_Output { 
	float4 color: COLOR;
};



float4 cc (float2 oPosition :TEXCOORD0,uniform sampler2D decal) {
float2 tmp = float2 (0,0.1);
    return tex2D (decal,oPosition+tmp);
}


C2E2f_Output main (    float2 oPosition : TEXCOORD0,


                   uniform sampler2D decal,			   

//uniform sampler2D decal3,
//float4 cl : COLOR
//float4 HCOL2 : COLOR0
 uniform float3 alpha
 ) 
{


	C2E2f_Output OUT;




float ccl1;
float v=0.0082;
float2 MX=float2 (v,0);
float2 MU=float2 (0,v);
float2 oPosition1=oPosition;
float2 oPosition2=oPosition+MX;
float2 oPosition3=oPosition+2*MX;
float2 oPosition4=oPosition+3*MX;



float4 cl=tex2D (decal,oPosition1);
cl=cc (oPosition1,decal);
float4 cl2=cc (oPosition2,decal);
float4 cl3=cc (oPosition3,decal);

//float4 cl2=tex2D (decal,oPosition2);
//float4 cl3=tex2D (decal,oPosition3);
//float4 cl4=tex2D (decal,oPosition4);


OUT.color=cl+cl2+cl3;
return OUT;




}









































/* 


  FRAGMENT ENV MAP 



  struct C2E2f_Output { 
	float4 color: COLOR;
};


C2E2f_Output main (    float2 oPosition : TEXCOORD0,
    float2 oPosition2 : TEXCOORD1,
	uniform sampler2D decal,			   
	uniform sampler2D decal2					   
				   ) 
{



	C2E2f_Output OUT;

//float fc=1;
//fc=position.x;
	//float2 norm;
	//norm.x=oNormal.x;
	//norm.y=oNormal.y;

OUT.color=tex2D (decal2,oPosition);

float dx=ddx(OUT.color.x);
float dy=ddx(OUT.color.x);

oPosition2.x+=dx*1;
oPosition2.y+=dy*1;


  OUT.color=tex2D (decal,oPosition2);




  
  
  //OUT.color.y=0;
//OUT.color.z=0;
//  OUT.color-=tex2D (decal,oPosition2);


	return OUT;




}
*/