Hello I was trying to add a sampler state pin to a constant shader to get it in border mode and color as alpha. is it posible ?
having a look to some older threads i got the address in border mode inside the shader but alpha seems not to work.
sampler Samp = sampler_state //sampler for doing the texture-lookup
{
Texture = (Tex); //apply a texture to the sampler
MipFilter = LINEAR; //sampler states
MinFilter = LINEAR;
MagFilter = LINEAR;
AddressU= BORDER;
AddressV = BORDER;
BorderColor = float4(cBord.r, cBord.g, cBord.b, 0);
//BorderColor = (cBord);
};
i saw that the drawfixed node has an sampler state pin but changing the color to alpha does not get the alpha either.