Sign in to follow this  

XOR ink?

This topic is 4250 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this