Post

 Resources 

Console


How to turn off an alpha blend mode in DX8 mateo (1 reply, 0 views) (2001-Jan-12)
-
I'm having a problem where once I turn on an RenderState mode, like alphablend one, I don't know how to turn it off: 'Make sure the device supports alpha blending If (D3DCaps.TextureCaps And D3DPTEXTURECAPS_ALPHA) Then 'It does, so turn alpha blending on Call .SetRenderState(D3DRS_ALPHABLENDENABLE, 1) If AlphaBlend = True Then Call .SetRenderState(D3DRS_SRCBLEND, D3DBLEND_ONE) Call .SetRenderState(D3DRS_DESTBLEND, D3DBLEND_ONE) End If End If Once I call the two render states if AlphaBlend = True, they are on permanently. I want to switch back to just having D3DRS_ALPHABLENDENABLE on. How to I "turn off" the D3DBLEND_ONE options?


-
Back to Forum

Re: How to turn off an alpha blend mode in DX8 DavW(DS) (0 replies) (2001-Jan-13)

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.
There have been 27 visitors within the last 20 minutes
RSS News Feed