XOR ink?
I'm using the DirectX line class to draw lines onto my scene. Is there a way to get it to draw the lines with XOR ink? ie: Color of (a,r,g,b) 0,255,0,255 on the render target changes to 255,0,255,0.
I know I could probably just use a pixelshader but I'm hoping for something simpler.
Thanks,
Devin
ALPHABLENDENABLE = true
SRCBLEND = ZERO
DESTBLEND = INVDESTCOLOR
Not quite xor. It's 1-oldvalue, which is useless when oldvalue = 0.5, but may be usable depending on what you're doing.
SRCBLEND = ZERO
DESTBLEND = INVDESTCOLOR
Not quite xor. It's 1-oldvalue, which is useless when oldvalue = 0.5, but may be usable depending on what you're doing.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement