Quickest way of clearing the alpha channel
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
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
Popular Topics
Advertisement