I have a hole defined by mathematically,How can you use pixel shaders to clip() pixels that hole
example,I want to draw a polygon which have a hole in it.
Someone can tell me? thanks!!
Option 2: Use texkill (in asm shader) or clip() (in HLSL).
float4 ThePixelShader(PixelIn args) {
theColor = PolyColor(args);
float3 arg(1, 1, 1);
if (PixelIsHole(args)) {
arg.x = -1;
}
clip(arg);
return theColor;
}