In DirectX, is there a quick way of turning a texture opaque (other than locking and manually changing the alpha value)?
In DirectX, is there a quick way of turning a texture opaque (other than locking and manually changing the alpha value)?
Last edited by Magos; 02-26-2006 at 08:22 PM.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
This question is obsolete now, but what I meant was setting the alpha channel of the texture to max (0xFF, 0xF etc... depending on depth).
Last edited by Magos; 02-27-2006 at 01:04 PM.
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
Oh, then you need to use vertex alpha. Set the render state to get the alpha from the vertex instead of the material and then set the alpha of your vertices.