
uniform float2	g_viewport : VIEWPORTSIZE;

float2 getPixelPos(float4 hpos){
	return floor((((hpos.xy)/hpos.w)*0.5f + 0.5f) * g_viewport);
}

float getStipple(float2 spos){
	float2 intpart = step((float2)1,fmod(spos,2));
	return 1-saturate(dot(intpart,float2(1,1)));
}

	float4 color = lerp(float4(0.5,0.2,0,1),float4(0.3,0.1,0.2,1),IN.tex.y);
	color = lerp(color,layer0*userctrl.x,layer0.w);
	color += layer1*userctrl.y;