Quickest way of clearing the alpha channel

Started by
0 comments, last by Adam_42 14 years, 5 months ago
Hey guys. In the middle of my render, I need to set the alpha value of every pixel of my render target to zero, while maintaining the colour info. Currently I'm setting the blend flags and drawing a big transparent quad, and it works fine. However, I was wondering if there was a quicker way? Cheers, Ian
Advertisement
You may find that setting D3DRS_COLORWRITEENABLE to disable writes to the other channels is quicker. This is because it'll let you avoid doing any actual blending.

This topic is closed to new replies.

Advertisement