struct C2E2f_Output { 
	float4 color: COLOR;
};



C2E2f_Output main (    float2 oPosition : TEXCOORD0,
	uniform sampler2D decal,
	uniform sampler2D decal2,
      uniform float alpha2,  
            uniform float alpha3
	//uniform sampler2D decal2,
	//uniform sampler1D oned,
    //uniform float cll
//    float4 cl :COLOR0
 ) 
{


	C2E2f_Output OUT;



//OUT.color*=float4(0.8,1,0.8,1);
//OUT.color=tex2D (decal,5*(round (oPosition*20.0f)/70.0f))*float4 (0.1,0.3,0.3,0);
float mm=60.0f+35.0f*tex2D (decal,oPosition);
float4 outt=tex2D (decal,(round (oPosition*mm)/80.0f));
//outt*=1.2;
//*float4 
OUT.color=outt*float4 (0.1,0.35,0.5,0)*alpha2;
//OUT.color=outt*float4 (0.45,0.4,0.4,0)*alpha2;
//tex2D (decal,(round (oPosition*mm)/90.0f))*float4 (0.1,0.2,0.4,0);
//*float4 (0.25,0.4,1,1)

    //OUT.color=tex2D (decal,(round (oPosition*70)/70.0f))*float4 (0.1,0.2,0.3,0);





//OUT.color=pow(tex2D (decal,oPosition)*6,3);

//OUT.color=1-cmm*cmm;
//OUT.color=cmm;
//OUT.color=tex1D (oned,OUT.color.x);
//OUT.color=cmm2*32;
//OUT.color=round(OUT.color*13)/13.0f;
//OUT.color=cmm2*50;
//OUT.color.z=pow(cmm2.x,10)*10000;
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;




}
*/