Hey guys, I need a help to make a circular clipping with shaders in postprocess.
Something like that:
I using this mask to make this:
Post Process:
sampler ColorSampler : register(s0);
And that to call the texture inside shader:
texture MaskTexture;
sampler2D MaskSampler=sampler_state
{
Texture = <MaskTexture>;
MinFilter = Linear;
MagFilter = Linear;
MipFilter = Linear;
AddressU = Clamp;
AddressV = Clamp;
};
Some friends told me to use clip function, but I dont found it in any place, so I dont have idea how to use that, if someone can help me I will be grateful.
Thank you guys!