In DirectX, is there a quick way of turning a texture opaque (other than locking and manually changing the alpha value)?
This is a discussion on Making an opaque texture within the Game Programming forums, part of the General Programming Boards category; In DirectX, is there a quick way of turning a texture opaque (other than locking and manually changing the alpha ...
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 07: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 12: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.
Arrogance breeds bad code