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;


	//float4 cl;
float4 cm2=1*tex2D (decal,oPosition);

//float    cll1=cm2*65+20;
//cll1=255;
float    cll1=pow(cm2,10)*150;
float4 cmm=tex2D (decal,round(oPosition*cll1)/cll1);
// cmm=tex2D (decal,oPosition);
//float4 cmm1=tex2D (decal,oPosition*1.2);
//float4 cmm2=ddx(cmm*12)+ddy(cmm*12);


//cmm*=0.9;
OUT.color=pow(tex2D (decal,oPosition)*1,1)*1;
OUT.color=tex2D (decal,oPosition)*14*alpha2;
cm2*=3000;
cm2+=2;


//OUT.color=tex2D (decal,round(oPosition*cm2)/cm2)*11*alpha2;

//cm2

oPosition+=float2 (0.05,0.05);

OUT.color=((tex2D (decal,oPosition)-float4(0.04,0.04,0.04,0.04))*8)
*alpha2*float4 (1,0.4,0.25,1)+float2 (0.05,0.05);


/*
oPosition+=cee.xy;
OUT.color=((tex2D (decal,oPosition)-float4(0.04,0.04,0.04,0.04))*9)
*alpha2*float4 (1,0.4,0.25,1)+cee*1;
*/
//*float4 (0.25,0.4,1,1)






//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;




}
*/