My issue is explained in the attached images. I am attempting to texture splat by adjusting alpha values on seperate layers. The problem is when the alpha map runs through the shader multiple times, it affects previous alpha adjustments adversly. The shader is very simple and is as follows:
void psPPAlphaPaint(float2 iUV : TEXCOORD0,
out float4 color : COLOR0)
{
color = tex2D(AlphaMap, iUV);
float2 distance = float2(0.0f, 0.0f);
distance.x = uCoordinate - iUV.x;
distance.y = vCoordinate - iUV.y;
float dist = sqrt(pow(uCoordinate - iUV.x, 2) + pow(vCoordinate - iUV.y, 2));
if(dist < 0.05)
{
color.a = 1.0;
}
}
Older alpha adjustments begin to blur and adust their position in the texture.
Any thoughts or clarifying questions?
Thank you
Edit: I am running the shader using a full screen quad to make adjustments to the alpha map as a render target